Where does MySQL store database files?

I have a remote wamp server and now I need my recovery database. How can I complete this process?

+47
mysql phpmyadmin wamp
Jan 19 '10 at 5:38 on
source share
4 answers

In any case, you may know this:

mysql> select @@datadir; +----------------------------------------------------------------+ | @@datadir | +----------------------------------------------------------------+ | D:\Documents and Settings\b394382\My Documents\MySQL_5_1\data\ | +----------------------------------------------------------------+ 1 row in set (0.00 sec) 

Thanks to Barry Galbraith from the MySql forum http://forums.mysql.com/read.php?10,379153,379167#msg-379167

+91
Jun 20 2018-12-12T00:
source share

WAMP stores the db data in WAMP\bin\mysql\mysql(version)\data . Where the WAMP folder itself depends on where you installed it (on xp, I believe that it is located directly in the main drive, for example c:\WAMP\...

If you deleted this folder or deleted this folder, if you did not back up the database before the deletion, you might be out of luck.

If you made a backup, although phpmyadmin, then log in and go to the import tab and go to the backup file.

+26
Jan 19 '10 at 13:35
source share

Check your my.cnf file in the MySQL program directory, find

 [mysqld] datadir= 

datadir is where your MySQL database is stored.

+18
Jan 19 '10 at 5:42 on
source share

another way from MySQL Workbench:

enter image description here

+4
Aug 19 '15 at 7:41
source share



All Articles