Hi, Im just curious as I am beginning to learn php and mysql, as to where the database and other files of mysql reside on the hard drive. I have installed wamp on a windows xp sp2 platform.
+2
A:
Usually in the /mysql/data
directory of your WAMP installation. You'll recognize the location because every database has a folder with the same name there.
You can change the location of the data directory using the datadir
setting in my.cnf
. It is often moved elsewhere to ensure the data there gets backed up regularly.
Pekka
2010-04-28 08:43:24
Hi got it ...was slightly different here - C:\wamp\bin\mysql\mysql5.1.36\data
aeonsleo
2010-04-28 08:47:23
A:
I am not sure about WAMP, but if you install MySQL manually it should reside somewhere along the lines of this path:
C:\Program Files\MySQL\MySQL Server 5.1
Alex Cheng
2010-04-28 08:45:19
A:
Explore variables from the output of following command:
mysql> show variables like '%dir%'
kv
2010-04-28 09:56:55