小编Val*_*tti的帖子

缓冲警告:更改限制:max_connections:214(请求800)

每次我重启MySQL都有这个警告:

[警告]缓冲警告:更改限制:max_connections:214(请求800)

所以我必须改变max_connections变量:

set global max_connections = 800;
Run Code Online (Sandbox Code Playgroud)

/etc/my.cfmax_connections设定:

[mysqld_safe]
log-error=/var/log/mysqld.log
pid-file=/var/run/mysqld/mysqld.pid
max_connections = 800
Run Code Online (Sandbox Code Playgroud)

我还修改了mysqld.service:

# Start main service
ExecStart=/usr/bin/mysqld_safe --defaults-file=/etc/my.cnf
Run Code Online (Sandbox Code Playgroud)

我还更新了Centos的最大打开文件,从1024到2000:

ulimit -Sa | grep "open files"
open files                      (-n) 2000
Run Code Online (Sandbox Code Playgroud)

但问题仍然存在.

Mysql日志启动:

150924 13:15:04 mysqld_safe mysqld from pid file 

/var/run/mysqld/mysqld.pid ended
150924 13:15:04 mysqld_safe Starting mysqld daemon with databases from /var/lib/mysql
2015-09-24 13:15:04 0 [Warning] TIMESTAMP with implicit DEFAULT value is deprecated. Please use --explicit_defaults_for_timestamp server option (see documentation …
Run Code Online (Sandbox Code Playgroud)

mysql centos7

16
推荐指数
2
解决办法
3万
查看次数

标签 统计

centos7 ×1

mysql ×1