在学习ocp时,看到有这一题,顺便记录下。
The /myfolder/my.cnf file has option set:
[mysqld]
skip-log-bin
/myfolder2/my.cnf has this option set:
[mysqld]
log-bin = /valid/path/to/mysqlbinlog
You start an instance by using this command line:
mysqld --defaults-file=/myfolder/my.cnf --defaults-extra-file=/myfolder2/my.cnf
使用--defaults-file时,mysql仅从/myfolder/my.cnf 这个文件读取参数。在全局配置文件后,如果没有指定,则从以下顺序读取参数:

博客探讨了在启动MySQL实例时,如何通过命令行参数`--defaults-file`和`--defaults-extra-file`来指定配置文件,并解释了配置加载的顺序,特别是当存在多个配置文件时如何处理`skip-log-bin`和`log-bin`选项的情况。
746

被折叠的 条评论
为什么被折叠?



