Determine Configured Location of MySQL's data directory OR all loaded *.cfn Locations

Posted by alanstorm on Server Fault See other posts from Server Fault or by alanstorm
Published on 2010-04-07T17:07:20Z Indexed on 2010/04/07 17:13 UTC
Read the original article Hit count: 231

Filed under:
|
|
|

I'm not a sys-admin, but sometimes I play one at work.

I've inherited a virtual server that had MySQL installed from source. I'm gathering as much information about the install as I can (original people who installed it are, of course, not a resource).

How can I find

  1. The default/current location of the MySQL binary files (often stored in a directory named data?)

  2. Any default or custom loaded cnf files?

Looking for solutions that are a bit more sophisticated than a find / -iname '*.cnf' :)

© Server Fault or respective owner

Related posts about mysql

Related posts about cnf