sql >> Base de Datos >  >> RDS >> Mysql

Determinar qué archivo de configuración de MySQL se está utilizando

Tomado del fantástico libro de O'Reilly "High Performance MySQL":

$ 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