logo

Where is mysql data directory?

Date: 2010-10-01

Usually mysql data directory resides in the /var/lib/mysql/
By mysql data means all the databases that are created on your mysql server are stored in that directory. The fastest way to check where your mysql data directory resides is to look inside your my.cnf file.

Code:

cat /etc/mysql/my.cnf | grep datadir


As I mentioned the default directory is:

Code:

datadir = /var/lib/mysql

Finally! This is jusFinally! This is just what I was lokniog for.

2011-07-18 10:52:44

Finally! This is just what I was lokniog for.


ubuntudog.com © 2017 | About | Sitemap | Contact