Go Premium for a chance to win a PS4. Enter to Win

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 303
  • Last Modified:

MySQL File Location

MySQL is installed on linux.  How do i locate the directory where the data is stored?
0
deklinm
Asked:
deklinm
1 Solution
 
legolasthehansyCommented:
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
0
 
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.
0

Featured Post

New feature and membership benefit!

New feature! Upgrade and increase expert visibility of your issues with Priority Questions.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now