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 > Restore MySQL from Previous System Folder

Restore MySQL from Previous System Folder
Thread Tools
Junior Member
Join Date: Oct 2000
Status: Offline
Reply With Quote
Oct 12, 2003, 07:36 AM
 
I had to do a complicated Archive & Install of OS 10.2 and realised all MySQL files were moved to the Previous System Folder by the OS installer

can anyone tell me how to restore my original SQL setup from before? worried that my MovableType setup would be affected if I installed MySQL from scratch.
     
Senior User
Join Date: Oct 2000
Location: Midwest
Status: Offline
Reply With Quote
Oct 12, 2003, 09:27 AM
 
There are several different MySQl install techniques available. How did you originally install MySQL? You data should be intact. On my machine the data is in /usr/local/mysql/data.

Read the MySQL manual. There is a comprehensive section of data transfer, backup, restore, etc that will give you a good background on what it is you will need to do.

HTH
Craig
     
Mac Elite
Join Date: Oct 2000
Location: Seattle
Status: Offline
Reply With Quote
Oct 13, 2003, 12:10 AM
 
Originally posted by zoe77:
I had to do a complicated Archive & Install of OS 10.2 and realised all MySQL files were moved to the Previous System Folder by the OS installer

can anyone tell me how to restore my original SQL setup from before? worried that my MovableType setup would be affected if I installed MySQL from scratch.

It will be a real pain in the butt to fix everything by hand because there are several parts to a mysql installation and they can be in different places in the system depending on how you installed it.

As long as your data folder is OK and is where mysqld expects it to be then everything that uses mysql should work fine. So I'd install a fresh copy using the installer from mysql.org
http://www.mysql.com/get/Downloads/M...ysql.orst.edu/


then just copy over your old data folder. it's not to hard to do this in the terminal

cp -r /path to old/mysql/data/ /path to new/mysql/data/
edit this to your setup of course.

the main things to look out for are the permissions on the data folder and data files.

No matter what you end up doing I'd download the installer and read the readme file. it has a lot of good info.

Have fun
You can take the dude out of So Cal, but you can't take the dude outta the dude, dude!
     
zoe77  (op)
Junior Member
Join Date: Oct 2000
Status: Offline
Reply With Quote
Oct 13, 2003, 09:16 AM
 
thanks for all the info posted guys, restoring was a success and pretty stragithforward, all my data was indeed in the mentioned directory path.
     
   
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 08:43 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