Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

I'm using MySQL 5.1.38 on a clean install of OS X 10.6, where the databases are stored in /usr/local/mysql/data. I have a backup of my old mysql data directory, but the databases were stored in /var/mysql/dbname.

Is there any way I can get my databases back?

share|improve this question
add comment

1 Answer

If MySQL was shutdown cleanly, you should be able to move the files that had been in /var/mysql/dbname into /usr/local/mysql/data while mysql is stopped, and then start mysql and have it pick them up.

share|improve this answer
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.