 |
 |
MySQL migration question
|
 |
|
 |
|
Senior User
Join Date: Sep 2000
Location: Noo Yawk
Status:
Offline
|
|
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
|
|
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
|
|
|
| |
|
|
|
 |
|
 |
|
Senior User
Join Date: Sep 2000
Location: Noo Yawk
Status:
Offline
|
|
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
|
|
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
|
|
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
|
|
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
|
| |
|
|
|
 |
|
 |
|
Senior User
Join Date: Sep 2000
Location: Noo Yawk
Status:
Offline
|
|
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
|
|
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
|
|
|
| |
|
|
|
 |
 |
|
 |
|
|
|
|
|

|
|
 |
Forum Rules
|
 |
 |
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
|
HTML code is Off
|
|
|
|
|
|
 |
 |
 |
 |
|
 |