[英]Where is MySQL 5.7 my.cnf file?
In Ubuntu I had my.cnf file of MySQL 5.6 in /etc/my.cnf
. 在Ubuntu中,我在MySQL的5.6 my.cnf文件/etc/my.cnf
。 But I can't find the same file of MySQL 5.7. 但我找不到MySQL 5.7的相同文件。 From where can I find that? 从哪里可以找到?
I did a find in entire / (root). 我在整个/(root)中找到了一个查找。 But I couldn't find it anywhere. 但我无法在任何地方找到它。 Any clues? 有线索吗?
I'm trying to set max_connections value. 我正在尝试设置max_connections值。
在MySQL 5.7中,默认的cnf位于:
/etc/mysql/mysql.conf.d/mysqld.cnf
mysql --help printed below. mysql --help打印在下面。
Default options are read from the following files in the given order:
/etc/my.cnf /etc/mysql/my.cnf ~/.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.
--no-defaults Don't read default options from any option file,
except for login file.
--defaults-file=# Only read default options from the given file #.
--defaults-extra-file=# Read this file after the global files are read.
--defaults-group-suffix=#
Also read groups with concat(group, suffix)
--login-path=# Read this path from the login file.
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.