MySQL 5.7 my.cnf 文件在哪里?

Where is MySQL 5.7 my.cnf file?

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

我在整个 / (root) 中找到了。但我到处都找不到。有什么线索吗?

我正在尝试设置 max_connections 值。

mysql --help printed below.

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.

在MySQL5.7中,默认的cnf在:

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