Skip to content

Commit 64b70b0

Browse files
dancekan3l
authored andcommitted
my.cnf: mention that config files must be *.cnf
It took me a long time to debug why my configs were not being loaded, and judging from online discussions I'm not the only one. Make the comment in the default my.cnf a bit more helpful. The !includedir directive is implemented in mysys/my_default.c. - f_extensions[] is a list of file extensions. It includes .ini and .cnf on Windows, and only .cnf on all other platforms. - search_default_file_with_ext() contains the !includedir directive. It filters files in the directory to those matching f_extensions[]. This file should only be applicable on Unix-like platforms, so only files with the .cnf extension are read. Closes #1485
1 parent 24cb76b commit 64b70b0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

support-files/rpm/my.cnf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
[client-server]
66

77
#
8-
# include all files from the config directory
8+
# include *.cnf from the config directory
99
#
1010
!includedir /etc/my.cnf.d
1111

0 commit comments

Comments
 (0)