标签: my.ini

如何通过命令行检查 my.ini 的路径?

如果可能,我想知道如何显示(使用命令行)my.ini服务器使用的路径。

我在 Windows IIS 中使用 MySQL 5.6。

我有以下几点:

  • Program Files\MySQL\MySQL Server 5.6\my-default.ini
  • C:\ProgramData\MySQL\MySQL Server 5.6\my.ini.

当然,服务器正在使用第二个。路径是否存储在 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 
C:\Program Files\MySQL\MySQL Server 5.6\my.ini 
C:\Program Files\MySQL\MySQL Server 5.6\my.cnf

The following groups are read: mysql client
The following options may be given as the first argument:
--print-defaults        Print the program argument list and exit.
...
Run Code Online (Sandbox Code Playgroud)

奇怪的是我没有这些文件。我坐下来显示每个文件夹上的隐藏文件。

所以,我看了一下这篇 …

mysql windows command-line mysqld my.ini

5
推荐指数
1
解决办法
2万
查看次数

标签 统计

command-line ×1

my.ini ×1

mysql ×1

mysqld ×1

windows ×1