【Linux】
#mysql --help|grep my.cnf
order of preference,my.cnf,$MYSQL_TCP_PORT,
/etc/my.cnf
/etc/mysql/my.cnf
/usr/local/mysql/etc/my.cnf
~/.my.cnf
【Windows】
C:\Users\gechong>mysql --help
Default options are read from the following files in the given order:
C:\windows\my.ini C:\windows\my.cnf
C:\my.ini
C:\my.cnf
D:\Wamp\wamp\bin\mysql\m
ysql5.5.20\my.ini D:\Wamp\wamp\bin\mysql\mysql5.5.20\my.cnf