簡體   English   中英

MySQL 5.7 my.cnf文件在哪里?

[英]Where is MySQL 5.7 my.cnf file?

在Ubuntu中,我在MySQL的5.6 my.cnf文件/etc/my.cnf 但我找不到MySQL 5.7的相同文件。 從哪里可以找到?

我在整個/(root)中找到了一個查找。 但我無法在任何地方找到它。 有線索嗎?

我正在嘗試設置max_connections值。

在MySQL 5.7中,默認的cnf位於:

/etc/mysql/mysql.conf.d/mysqld.cnf

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.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM