views:

1032

answers:

2

I'm trying to recover a table in a MySQL database from Time Machine, however I don't know and can't find where Leopard Server's MySQL stores its data files.

  1. Does anyone know where they are stored?
  2. Is there an easy way to run mysqldump on them without restoring them?
  3. Is there anything else I should know about Time Machine and MySQL data file(s)?
A: 

It's in /var/mysql/dbname , where dbname is the name of the database.

pixelcort
That depends on how it was installed.
Mike Heinz
+2  A: 

Connect to the database and issue

SHOW VARIABLES LIKE 'datadir';

Which will tell you the right answer even if it's been changed from the default.

MarkR