文章详情页
thinkphp出现 mysql too many connections
浏览:213日期:2022-06-20 18:48:33
问题描述
thinkphp mysql too many connection这个错误!大家有没有遇到呀?求助~我的mysql最大连接数是300

问题解答
回答1:登录mysql终端,使用show full processlist查看mysql连接信息。
回答2:Mysql达到连接数上限了,修改一下mysql的配置即可。
show variables like ’%max_connections%’;set global max_connections = 5000;
如果连接数比5000还多,那就要上主从复制读写分离了,避免单机读写上限。
回答3:重启mysql,或者立马断网,有可能你的mysql数据库被别人ddos了
相关文章:
1. boot2docker无法启动2. docker-compose中volumes的问题3. 关docker hub上有些镜像的tag被标记““This image has vulnerabilities””4. docker容器呢SSH为什么连不通呢?5. java - SSH框架中写分页时service层中不能注入分页类6. dockerfile - 为什么docker容器启动不了?7. 关于docker下的nginx压力测试8. node.js - antdesign怎么集合react-redux对input控件进行初始化赋值9. docker安装后出现Cannot connect to the Docker daemon.10. nignx - docker内nginx 80端口被占用
排行榜

网公网安备