【发布时间】:2015-11-13 11:09:20
【问题描述】:
为什么我的网站http://elancemarket.com/ 一次又一次地收到此错误?
Error establishing a database connection
SQL ERROR [ mysqli ]
User elancema_user already has more than 'max_user_connections' active connections [1203]
Warning: mysqli::mysqli(): (HY000/1203): User elancema_user already has more than 'max_user_connections' active connections in /home/elancemarket/public_html/ask/qa-include/qa-db.php on line 66
我使用的是非常昂贵的 VPS!
【问题讨论】:
-
MySQL 配置中的 max_user_connections 是什么?显然太低了。
-
@Andrius 我的服务器提供商告诉我,它设置为 20,这是正常的,因为在几秒钟内创建和删除数据库连接!
-
好吧,将它设置为更高的值。如果它是一个非常复杂的网站,您可能会在每次加载时建立超过 20 个连接。
-
@Andrius 好的,让我让我的服务器提供商增加限制。我想,我正在使用多个 cms,这就是我过于频繁地达到最大连接数限制的原因。
-
这个老问题的状态如何?
标签: php mysql wordpress phpbb3 question2answer