Welcome to the MacNN Forums.

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

You are here: MacNN Forums > Software - Troubleshooting and Discussion > Mac OS X > MySQL Backup

MySQL Backup
Thread Tools
Addicted to MacNN
Join Date: Jan 2000
Location: Stoneham, MA, USA
Status: Offline
Reply With Quote
Mar 3, 2003, 12:46 AM
 
I'm looking for an easy way to backup and restore all of my SQL databases. I found a Cocoa program for doing stuff with MySQL but strangely it won't connect to my server. I have phpMyAdmin but it doesn't have any sort of backup feature. I'd prefer something simple that will, in one step, backup ALL databases into one neat package.
     
Fresh-Faced Recruit
Join Date: Aug 2002
Status: Offline
Reply With Quote
Mar 3, 2003, 05:00 AM
 
Open a terminal and type:

mysqldump -u USERNAME -p --all-databases > backup.sql

, substituting USERNAME with your user. This will pipe the output of the mysqldump command to backup.sql.

And if you need to restore your database, type

mysql < backup.sql

, and you're off. You probably need some login information in that line as well...

hope this helps,
Terje
     
   
Thread Tools
Forum Links
Forum Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Top
Privacy Policy
All times are GMT -5. The time now is 05:48 PM.
All contents of these forums © 1995-2011 MacNN. All rights reserved.
Branding + Design: www.gesamtbild.com
vBulletin v.3.8.7 © 2000-2011, Jelsoft Enterprises Ltd., Content Relevant URLs by vBSEO 3.3.2