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 > Applications > MySQL migration question

MySQL migration question
Thread Tools
Senior User
Join Date: Sep 2000
Location: Noo Yawk
Status: Offline
Reply With Quote
Oct 19, 2003, 07:22 PM
 
Going to install new version PHP and MySQl after clean install of Panther.
My Jaguar is a little corrupt -- but would like to keep MySQL databases an database structures.

Any quick hints on how to dump contents and structure then re-load after new versions installed?

Thanks,
     
Dedicated MacNNer
Join Date: Aug 2002
Status: Offline
Reply With Quote
Oct 19, 2003, 07:33 PM
 
This should probably in the web development forum...

The command would be 'mysqldump'

options would probably be:

mysqldum --all-databases -u(name) -p(password) > (file)

note that there is no '=' sign in the -u and -p

this will create a dump of your databases, you can then reimport them using the command 'mysqlimport'

--will
     
vsurfer  (op)
Senior User
Join Date: Sep 2000
Location: Noo Yawk
Status: Offline
Reply With Quote
Oct 20, 2003, 09:13 PM
 
Originally posted by clam2000:
This should probably in the web development forum...

The command would be 'mysqldump'

options would probably be:

mysqldum --all-databases -u(name) -p(password) > (file)

note that there is no '=' sign in the -u and -p

this will create a dump of your databases, you can then reimport them using the command 'mysqlimport'

--will
Thanks Will.
     
Forum Regular
Join Date: Apr 2001
Status: Offline
Reply With Quote
Oct 21, 2003, 04:51 AM
 
You should be using CocoaMySQL...

It can generate very nice dumps for you. After your upgrade, you can just read the dumps back in.
     
Mac Elite
Join Date: Mar 2001
Location: CO
Status: Offline
Reply With Quote
Oct 21, 2003, 06:05 AM
 
Thanks ever so much for that lead on CocoaMySQL. It's only a v0.5 but beats anything commercial available out there for all sort of MySQL admin via OS X GUI !
     
Mac Elite
Join Date: Sep 2001
Location: Chile
Status: Offline
Reply With Quote
Oct 21, 2003, 10:16 AM
 
thx Thor for the link !
very useful app indeed
:: frankenstein / lcd-less TiBook / 1GHz / radeon 9000 64MB / 1GB RAM / w/ext. 250GB fw drive / noname usb bluetooth dongle / d-link usb 2.0 pcmcia card / X.5.8
:: unibody macbook pro / 2.4 Ghz C2D / 6GB RAM / dell 2407wfp - X.6.3
     
vsurfer  (op)
Senior User
Join Date: Sep 2000
Location: Noo Yawk
Status: Offline
Reply With Quote
Nov 2, 2003, 06:13 PM
 
Originally posted by Thor:
You should be using CocoaMySQL...

It can generate very nice dumps for you. After your upgrade, you can just read the dumps back in.

Thanks for this. Works well.

I like to be able to do things both ways (so as not to be so totally reliant of GUIs), but this time I did have a bit of syntax trouble near mysqldump -- so I'll go check the manual.
     
Senior User
Join Date: Sep 2000
Location: Shallow Alto, CA
Status: Offline
Reply With Quote
Nov 2, 2003, 08:02 PM
 
I used Complete Mysql to reinstall mysql after the upgrade to Panther. Linkage

Everything went well and it was the easiest migration thusfar. Complete mysql gives you a nice prefpane for turning mysql on/off and lets you easily set your root password for mysql. Using this in conjunction with CocoaMysql was very easy.

Good luck
     
   
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 10:01 AM.
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