Server Fault is a question and answer site for system and network administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

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

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

Your Answer


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