Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

where is mysql server's default data folder in windows 7

Tags:

mysql

windows

I am looking for the data directory of mysql server (5.1.42) I installed on my machine which runs win7.

There is no 'data' direcotory in C:\Program Files\MySQL\MySQL Server 5.1 and also in C:\Users\MyAccount\AppData\Local||LocalLow||Roaming

like image 475
nit Avatar asked Jan 20 '10 23:01

nit


People also ask

Where is the MySQL data directory?

By default, the datadir is set to /var/lib/mysql in the /etc/mysql/mysql.

Where are MySQL databases stored by default?

Typically, MySQL will store data in the default directory of /var/lib/mysql.

How do I view MySQL database in Windows?

Enter mysql.exe -uroot -p , and MySQL will launch using the root user. MySQL will prompt you for your password. Enter the password from the user account you specified with the –u tag, and you'll connect to the MySQL server.


1 Answers

Different MySQL/Windows versions have different data folder locations. To get your ACTUAL data folder location just execute this SQL:

SHOW VARIABLES WHERE Variable_name LIKE '%dir'
like image 160
Cris Avatar answered Nov 15 '22 18:11

Cris