How to find out the location of currently used MySQL configuration file in linux

Viewed 132042

How do I know which configuration file is used by MySQL currently? Is there any command or something to find it out?

7 Answers

mysqld --help --verbose will find only location of default configuration file. What if you use 2 MySQL instances on the same server? It's not going to help.

Good article about figuring it out:

"How to find MySQL configuration file?"

you can find it by running the following command

mysql --help

it will give you the mysql installed directory and all commands for mysql.

Related