Smart questions
Smart answers
Smart people
INTELLIGENT WORK FORUMS
FOR COMPUTER PROFESSIONALS

Member Login




Remember Me
Forgot Password?
Join Us!

Come Join Us!

Are you a
Computer / IT professional?
Join Tek-Tips now!
  • 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!

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

Donate Today!

Do you enjoy these
technical forums?
Donate Today! Click Here

Posting Guidelines

Promoting, selling, recruiting, coursework and thesis posting is forbidden.
Jobs from Indeed

Link To This Forum!

Partner Button
Add Stickiness To Your Site By Linking To This Professionally Managed Technical Forum.
Just copy and paste the
code below into your site.

Migrating from Linux to Windows

YOUNGCODGER (Programmer)
7 Dec 10 13:04

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
vacunita (Programmer)
7 Dec 10 14:41
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.

http://dev.mysql.com/doc/refman/5.1/en/mysqldump.html

----------------------------------
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.
http://behindtheweb.blogspot.com/
 

DonQuichote (Programmer)
8 Dec 10 3:58
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:

CODE

lower_case_table_names=2

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)

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!

Back To Forum

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