You should find them by default in a folder, for example /etc/my.cnf , perhaps also version dependent. From the MySQL configuration file :
Interestingly, the volume of this file can be set in accordance with its location. Settings will be considered global for all MySQL servers if they are stored in /etc/my.cnf. This will be a globally specific server if it is located in the directory where the MySQL database is (/ usr / local / mysql / data for binary installation or / usr / local / var for source installation). Finally, its scope can be limited to a specific user if the MySQL user located in the home directory (~ / .my.cnf). Keep in mind that even if MySQL detects the my.cnf file in the /etc/my.cnf file (global all MySQL servers on this computer), it will continue to search for the server-specific file, and then the user file. You can think of final configuration options, such as being the result of the /etc/my.cnf, mysql-data-dir / my.cnf and ~ / .my.cnf files.
There are several switches for package managers to display specific files.
RPM Sytems:
The rpm list includes the rpm , -q commands for querying, and -c or --configfiles to display configuration files. There is also -l or --list
--configfiles did not help me, but --list selected several .cnf files stored in mysql-server
rpm -q --list mysql-server
DEB systems:
Also with limited success: dpkg --listfiles mysql-server
bakkal Jul 17 '10 at 5:10 2010-07-17 05:10
source share