mysql8 连接数问题

之前
操作环境 centos6.8 上安装 mysql5.5
max_connections = 15000

img

现在
操作环境 centos7.6 上安装 mysql8.0
max_connections = 15000

img

连接数无法达到 15000 了是什么原因呢?

添加LimitNOFILE=65535至mysql服务文件mysqld.service中的[Service]段下面

echo "LimitNOFILE = 65535" >> /usr/lib/systemd/system/mysqld.service
systemctl daemon-reload
vim /etc/my.cnf    // 添加max_connections = 期望值
systemctl restart mysqld

修改完没有重启试试?