In Linux systems, the location of the configuration file is generally /etc/my.cnf or /etc/MySQL/my.cnf.
We have seen some people try to modify the configuration file but it does not take effect because the file they modified is not the file read by the server. For example, under Debian, /etc/mysql/my.cnf is the configuration file read by MySQL, not /etc/my.cnf.
If you don’t know the currently used configuration file path, you can try the following operations:
Related recommendations: linux tutorial
The above is the detailed content of Where is the mysql configuration file for linux?. For more information, please follow other related articles on the PHP Chinese website!