MySQL File Location

MySQL is installed on linux.  How do i locate the directory where the data is stored?
Who is Participating?
legolasthehansyConnect With a Mentor Commented:
Should be under /var/lib/mysql
If it is a non-standard location it should be defined in the /etc/my.cnf file

grep datadir /etc/my.cnf
Dave BaldwinFixer of ProblemsCommented:
It turns out to depend on the version of Linux because some do it differently.  On my Ubuntu 8.04 and several others, the databases themselves are found in /var/lib/mysql.
All Courses

From novice to tech pro — start learning today.