drusolis
drusolis

Reputation: 862

How do I find out what my.cnf is being used?

With MySQL, a my.cnf can be used specify configuration properties. MySQL may look in a variety of places to find this file, and if it doesn't find it may use built-in defaults.

How do you know what my.cnf is being used?

Upvotes: 2

Views: 2017

Answers (1)

drusolis
drusolis

Reputation: 862

mysqld --help --verbose | grep -B 1 cnf

Beneath the "Default options are read from the following files in the given order:" line will be the locations MySQL is looking for the my.cnf file.

Upvotes: 2

Related Questions