是否可以查询mysql服务器以了解正在使用的配置文件?有时,my.cnf,my.ini。
SHOW VARIABLES; -- does not have enough information here for my.ini path发布于 2014-08-03 07:31:42
这样做是不可能的,因为一旦启动时加载了配置,就不再使用配置。
MySQL使用确定性算法搜索配置文件。您可以看到它是论MySQL手册 (第一个表用于Windows)。
您可以做的两件事是:检查在默认情况下加载了哪些选项:使用--print-defaults:
mysqld --print-defaults
mysqld would have been started with the following arguments:
--log_bin(在本例中,配置文件中有log_bin )。
具有参数强制手动加载配置文件。的--defaults-file:
mysqld --defaults-file=C:\my\path\to\my.inihttps://dba.stackexchange.com/questions/73035
复制相似问题