软件版本
1.Linux:CentOS Linux release 7.8.2003 (Core)
2.MySQL:mysql-8.0
找到你的配置文件
- 配置文件名:my.cnf
- 我的配置文件路径:/etc/my.cnf
- 找不到的同学可以用命令行全盘搜索
[root@localhost ~]# find / -name my.cnf
编辑配置文件
[mysqld]
# time out
connect_timeout = 10
wait_timeout = 30
# connection
max_connections=1000
max_user_connections=850
max_connect_errors=1000
max_allowed_packet=100M