MySQL 5.7 my.cnf文件在哪里? [英] Where is MySQL 5.7 my.cnf file?

查看:1085
本文介绍了MySQL 5.7 my.cnf文件在哪里?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

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

In Ubuntu I had my.cnf file of MySQL 5.6 in /etc/my.cnf. But I can't find the same file of MySQL 5.7. From where can I find that?

我在整个/(根目录)中进行了查找.但是我在任何地方都找不到.有什么线索吗?

I did a find in entire / (root). But I couldn't find it anywhere. Any clues?

我正在尝试设置max_connections值.

I'm trying to set max_connections value.

推荐答案

mysql-帮助打印在下面.

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.

这篇关于MySQL 5.7 my.cnf文件在哪里?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆