#连接数 151改1000
mysql -u root -p
set GLOBAL max_connections=1000;
show variables like 'max_connections';
vi /etc/my.cnf
max_connections=1000
systemctl restart mysqld
#连接数 151改1000
mysql -u root -p
set GLOBAL max_connections=1000;
show variables like 'max_connections';
vi /etc/my.cnf
max_connections=1000
systemctl restart mysqld