Signup · Login
Stardeveloper.com  
Home · Tutorials · Forums · ASP.NET Newsletter Application · Web Hosting Plans · Faisal Khan's Blog · Contact
Search Stardeveloper.com
Newsletter
Enter your email address to receive full length articles at Stardeveloper:


Article Categories
.NET  .NET
  ASP (16)
  ASP.NET (41)
  ADO (16)
  ADO.NET (11)
  COM (6)
  Web Services (4)
  C# (1)
  VB.NET (3)
  IIS (2)

J2EE  J2EE
  JSP (15)
  Servlets (9)
  Web Services (1)
  EJB (4)
  JDBC (4)
  E-Commerce (1)
  J2ME (1)
  Products (1)
  Applets (1)
  Patterns (1)
Log In
UserName Or Email:

Password:

Auto-Login:

Miscellaneous Links
  Submit Article
Stardeveloper RSS Feed
Hosted by Securewebs.com
 
Home : .NET : ADO.NET : How to import Excel, Access or XML data into MySQL database by using a MySQL Client Tool – Navicat?
 
RSS - Read full length articles at Stardeveloper using Stardeveloper RSS Feed RSS

How to import Excel, Access or XML data into MySQL database by using a MySQL Client Tool – Navicat?

by Ken Lin.

Overview
We very often need to import various data into MySQL databases. This becomes a tough job if we don’t have a reliable & easy-to-use MySQL GUI; At times, when I am working on deadlines, this job becomes frustrating and I find myself wishing I had a tool to do this job for me.

Navicat can convert Excel spreadsheets/MS Access to MySQL databases, eliminating time-consuming data entry and the errors that accompany it. It uses a Microsoft Access-like interface and comes with a MySQL server Launcher and comprehensive manual that will help you to get started. It is more than just a simple MySQL admin client, other useful major features include schedule backup, data transfer, import/export wizard, support Foreign Keys, visual query builder, and visual report builder.

Navicat's Database Transfer Tool, is a visual data transfer tool designed for developers who work between different MySQL servers or need to move databases between two MySQL servers.

In Depth
PremiumSoft Navicat enables you to convert your documents (different file types) into your MySQL databases. Its easy-to-use interface makes it easy to perform the Import/Export action. In Navicat 5.3 version, you can save the process as a profile. With the profile, you can create a schedule for it.

Getting Started
First of all you need to install PremiumSoft Navicat. You can download it from http://www.mysqlstudio.com/shareware.php3. You can connect to the MySQL host where you want to import your data into it. This is quite easy as you only have to give your server details and you will be connected.

Navicat - Connection Details Window
Navicat - Connection Details Window

After connecting, you should see your databases in left side of Navicat main window:

Navicat - Main Window
Navicat - Main Window

If you click on database icon, Navicat shows you a list of all of the tables. Select the table that you want to perform Import action.

Please click on Import Wizard button. Import Wizard will be started. Follow the steps of Import Wizard, you should be able to import your MS Excel/Access/XML file into MySQL database.

Navicat - Import Wizard
Navicat - Import Wizard

Tutorial on Import/Export Wizard of Navicat

Import data to table using Import Wizard

  1. Click the Tables tab.
  2. If you have an existing table to which you want to import data, select the table. Otherwise, do not select any table.
  3. Click Import Wizard at the Database Window
    OR
    Right-click anywhere in the Database Window and select Import Wizard.
  4. An Import Wizard dialog box will be shown.
  5. Depending on the import data format, you should follow several steps to complete the import process. Here are the steps for importing from text file:

    Import Wizard Steps

    1. State which import data format you would like.
    2. Locate your file for import data.
    3. Select the appropriate delimiter. (For text file only)
    4. You can define some additional options for source.
    5. The wizard has made some guesses about where your field breaks occur. If they are incorrect, you can make adjustments in this step.
      NOTE: If the import data format is Text format and you have selected "Fixed width" in step3, you can set field breaks in this step.
    6. The wizard will make some guesses on your table structure and you can make adjustments.
    7. You can define the field mappings. Set Mappings to specify the correspondence between fields in the Source and fields in the Destination.
    8. Check your data before importing.
    9. Select a desired import mode.
    10. Click Execute button to start importing data.

 ( 1 Remaining ) Next

Comments/Questions ( Threads: 7, Comments: 9 )
    Contains 1 or more replies by the Author of this Article.
    Contains 1 or more replies by Faisal Khan.

  1. Import XML Data into MYSQL
  2. Import data in mysql
  3. XML with blank tags
  4. if i import this code i get just some of the data, how do i get all (with sub-groups)?
  5. generating reports
  6. the constitution ( 2 Replies )
  7. the constitution

Post Comments/Questions

In order to post questions/comments, you must be logged-in. If you are not a member yet, then signup, otherwise login. Once you login then come back to this page and you'll see a form right here which will allow you to post comments/questions.

Please note, one of the benefits of signing up is to be notified immediately by email everytime you receive a reply to the thread you have subscribed.

 
© 1999 - 2010 Stardeveloper.com, All Rights Reserved.