Member Login

Remember Me
Forgot Password?
Join Us!

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!

Join Tek-Tips
*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.
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.

Import/Export MySQL

Import/Export MySQL

i'm kinda a newbie to MySQL (i've only dealt with MS SQL 2k and up)
is there a utility like DTS / SSIS that i can use to schedule import/export of data to an odbc connection or a csv file or will it all need to be done int  some script(Ruby,PHP etc)

problem is i know T-SQL and ANSI SQL and ColdFusion and that is the extent of my coding knowledge.


RE: Import/Export MySQL

You can schedule backups by using the mysqldump command line utility. It should be in the bin folder of the mysql installation.

You can setup a batch file that will dump your tables and data to a file in the format you require. It can eve dump the creation routines of your table, so you get a complete backup which you can feed to MYSQL and have your database and tables back up in very little time.

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: Import/Export MySQL

What do you want to achieve? If you want a backup, use the mysqldump utility as suggested above.

If you want to access the data from a script, you can connect to the database from the script. If you cannot (say, because the script runs on a disconnected laptop computer) or really want a CSV file, you can also use the command-line client, but you have to do some more work, as the -B option only produces tab-delimited output. You can the use (for instance) sed to convert it into CSV.

+++ 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