远程链接mysql数据库

mysql -h192.168.1.27 -P3306 -uroot -proot

显示最大连接数
show variables like '%max_connections%';
设置最大链接数
set global max_connections=2000;//默认100--只对当前进程有效,服务重启还是100


2、修改my.ini 文件
原文地址:https://www.cnblogs.com/sallet/p/5073414.html