Determine Configured Location of MySQL's data directory OR all loaded *.cfn Locations
- by alanstorm
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
The default/current location of the MySQL binary files (often stored in a directory named data?)
Any default or custom loaded cnf files?
Looking for solutions that are a bit more sophisticated than a find / -iname '*.cnf' :)