Comdev - More PHP Modules For Your Website Think PHP Modules . Think Comdev 
Home
Product
Support
Enquiry
Become Partner
Online Store

Purchase Today & Get
Your Hassle-Free
Installation Support


Go To Product Page
Go To Customer Support


Search for Answers
Type in your keywords to search for the answers you need.

Browse by Category
General Issue (18)
Pre-Sales Questions (12)
Upgrades & Patches (2)
One Admin Suite (1)
Modules Builder (1)
Photo Gallery (34)
Newsletter (26)
eCommerce (18)
Web Blogger (17)
Events Calendar (10)
News Publisher (12)
Misc Tools (1)
Forum (1)
Links Directory (27)
Form Designer (3)
FAQ Support (21)
Customer Helpdesk (22)
Vote Caster (13)
Contact Form (15)
Guestbook (12)
Geo Traffic (15)
CSV Importer (17)





Back To List Tutorials Showing 2 Of 5 Prev  |  Next

Import a CSV file into MySQL database.
Modified on 2005-12-16

Before importing your data, we highly recommend you to open the CSV file with a text editor, and ensure that the data is appear in a record of per row basis.

  1. Login to your One Admin control panel, and click on CSV Import link.

  2. First, you'll need to upload your CSV file to your web server. To do this, click on the 'Browse' button, select and locate the CSV file from your hard drive.

  3. Enter the number of records to preview on this page, just after you uploaded the CSV file.

  4. Click on the 'Upload' button. The CSV file will be saved to your web server.

  5. Click on the 'Click to view all columns' link to ensure that each record is properly uploaded.

  6. Click 'Next' to proceed to second step.

  7. Under the section, 'Connect Database', enter the MySQL host, MySQL user and MySQL password in the boxes provided. Click 'Save this connection information' if you want the system to remember your MySQL connection info the next time you import a new data.

  8. Click on the 'Connect' button.

  9. Select a database in which the table you want the data to import to is reside, from the drop down list.

  10. Select which table the data is import to from the drop down menu.

  11. Click the corresponding link to view the columns structure of the table chosen.

  12. Click on the 'Next' button.

  13. On the next page, 'Match Column', you will be able to see whether the columns of the CSV file you uploaded matches the columns of the table.

  14. If everything is alright, scroll down a bit, there is an option asking if you want to import the first record row of the CSV file. Put a check to import the first row.

  15. Also, if you wish to let the database auto-creates value in increment for you, check the 'Use auto increment for column' box, then select which column to apply the method to.

  16. Choose an import option. You have 3 options in this section, which described as below:

    1. Append as new records

      • This option allows you to add new records to the table without affecting the existing data rows.

      • Choose this option if you're importing records to an empty table.

    2. Replace all existing records

      • Use this option to replace the existing data with new records.

    3. Update records using Primary Key

      • Select this option if you attempts to update only a few records rows while keeping the remaining data.

      • Click here for more detailed guidelines on how to update records in existing table.

  17. Clicking on the 'Next' button will start importing your CSV file records to your database.

  18. You're then taken to the Import Summary page.




Is this FAQ helpful? Average Ratings :
Printer Friendly Version
Tell A Friend

Related FAQs In This Category
How do I update records of a table using the CSV Import?

What is Undo Import?




Copyright © 2002-2006 by Comdev Software Sdn Bhd. All Rights Reserved. License Agreement Privacy Policy Site Map