问题原文
原帖链接 · Dr. Gianluigi Zane Zanettini · CC BY-SA 4.0
As per title. In /etc/mysql/my.cnf I see:
!includedir /etc/mysql/conf.d/
!includedir /etc/mysql/mysql.conf.d/
.cnf files from both location are loaded: why having two? Which one is the "right one" for my own .cnf?
社区高分解答
原帖链接 · Nicolas Göddel · CC BY-SA 4.0
In my case I had to add all my changes to the directory /etc/mysql/mysql.conf.d/ because it gets loaded last. So I added a file zz_myconfig.cnf to that directory with all my changes. The other way around the configuraion from /etc/mysql/mysql.conf.d/mysqld.cnf would overwrite my settings again which is unfortunate.
If the directory /etc/mysql/conf.d is the official way to go then it should also be the last include directory within /etc/mysql/my.cnf.
摘自公开归档,保留原文语言,版式经整理,外部媒体与邮箱地址已移除。
