输入:
MysqL --help
然后查看输出。大约有3/4的文本块描述了.my.cnf
从中找到默认文件的文件。下面是一个 ,从 XAMPP V3.2.1 :
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 C:\xampp\MysqL\my.ini C:\xampp\MysqL\my.cnf C:\xampp\MysqL\bin\my.ini C:\xampp\MysqL\bin\my.cnf
您将必须运行命令以检查特定系统上的实际路径。