Determine which Mysql configuration file is being used

Here is how to quickly Determine which Mysql configuration file is being used


$ which mysqld
/usr/sbin/mysqld


$ /usr/sbin/mysqld --verbose --help | grep -A 1 "Default options"
Default options are read from the following files in the given order:
/etc/mysql/my.cnf ~/.my.cnf /usr/etc/my.cnf

Leave a Comment

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.