• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 314
  • 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
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Featured Post

Cloud Class® Course: CompTIA Cloud+

The CompTIA Cloud+ Basic training course will teach you about cloud concepts and models, data storage, networking, and network infrastructure.

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