先重启mysql:
先查看docker镜像:docker ps -a

找到mysql 的 CONTAINER ID,重启:docker restart {container_id}
然后查看最大连接数:
show variables like "max_connections";
设置最大连接数:
set GLOBAL max_connections=1000;
先重启mysql:
先查看docker镜像:docker ps -a
找到mysql 的 CONTAINER ID,重启:docker restart {container_id}
然后查看最大连接数:
show variables like "max_connections";
设置最大连接数:
set GLOBAL max_connections=1000;
本文标题:Mysql -1040 too many connection
本文链接:https://www.haomeiwen.com/subject/vdnamqtx.html
网友评论