Log In

Come Join Us!

Are you a
Computer / IT professional?
Join Tek-Tips Forums!
  • Talk With Other Members
  • Be Notified Of Responses
    To Your Posts
  • Keyword Search
  • One-Click Access To Your
    Favorite Forums
  • Automated Signatures
    On Your Posts
  • Best Of All, It's Free!
  • Students Click Here

*Tek-Tips's functionality depends on members receiving e-mail. By joining you are opting in to receive e-mail.

Posting Guidelines

Promoting, selling, recruiting, coursework and thesis posting is forbidden.

Students Click Here


Migrating from Linux to Windows

Migrating from Linux to Windows

Migrating from Linux to Windows


I have a MySQL database sitting on a Linux system which I need to migate to MySQL under Windows. Is there an easier way to do this rather than setting up all the tables under Windows and exporting each table to CSV (or similar) and then importing it into the new table?

Many thanks,

YoungCodger bigglasses

RE: Migrating from Linux to Windows

Use, mysqldump, it comes with all mysql sever versions.

Quote (MYSQL online Documentation):

The mysqldump client is a backup program originally written by Igor Romanenko. It can be used to dump a database or a collection of databases for backup or transfer to another SQL server (not necessarily a MySQL server). The dump typically contains SQL statements to create the table, populate it, or both. However, mysqldump can also be used to generate files in CSV, other delimited text, or XML format.

Execute a dump of the table structure with or without data, that's your call, then import the file to the mysql on windows so it will regenerate the tables.

Mysqldump generates flat text files, you can send, or transfer to the new sever anyway you want to.

You can then execute another dump for the data if you did not include it in the first one, and feed it to the windows mysql installation.


Phil AKA Vacunita
Ignorance is not necessarily Bliss, case in point:
Unknown has caused an Unknown Error on Unknown and must be shutdown to prevent damage to Unknown.

Behind the Web, Tips and Tricks for Web Development.

RE: Migrating from Linux to Windows

One extra tip:

MySQL on Windows comes with a configuration bug. As the Windows filesystems are not case sensitive, the table names are not case sensitive either. For compatibility to unix-like systems, there is a setting to cope with this. The default on Linux is "be case sensitive", but the default on Windows is to cripple all table names to lower case. Especially for cross-platform development, this is really harmful.

Better set the setting to "be case insensitive, but keep the case as is" on Windows. This can be done by adding the line:



To your my.ini file in the [mysqld] section. Do this before importing the databases.

+++ Despite being wrong in every important aspect, that is a very good analogy +++
   Hex (in Darwin's Watch)

Red Flag This Post

Please let us know here why this post is inappropriate. Reasons such as off-topic, duplicates, flames, illegal, vulgar, or students posting their homework.

Red Flag Submitted

Thank you for helping keep Tek-Tips Forums free from inappropriate posts.
The Tek-Tips staff will check this out and take appropriate action.

Reply To This Thread

Posting in the Tek-Tips forums is a member-only feature.

Click Here to join Tek-Tips and talk with other members!

Close Box

Join Tek-Tips® Today!

Join your peers on the Internet's largest technical computer professional community.
It's easy to join and it's free.

Here's Why Members Love Tek-Tips Forums:

Register now while it's still free!

Already a member? Close this window and log in.

Join Us             Close