Skip to content
This repository has been archived by the owner on Sep 18, 2024. It is now read-only.

'SQLSTATE[HY000] [1040] Too many connections' #41

Open
weeb0 opened this issue Jul 29, 2011 · 1 comment
Open

'SQLSTATE[HY000] [1040] Too many connections' #41

weeb0 opened this issue Jul 29, 2011 · 1 comment

Comments

@weeb0
Copy link

weeb0 commented Jul 29, 2011

After few hours, I cannot connect to the proxy, in apache error_log, I see the following message :

[Thu Jul 28 20:17:37 2011] [error] [client 192.168.0.XXX] PHP Fatal error: Uncaught exception 'PDOException' with message 'SQLSTATE[HY000] [1040] Too many connections' in common.inc.php:33\nStack trace:\n#0 common.inc.php(33): PDO->__construct('mysql:host=loca...', 'bitcoin_proxy', '741369')\n#1 index.php(31): db_connect()\n#2 {main}\n thrown in common.inc.php on line 33

@Obsi
Copy link

Obsi commented Aug 12, 2011

I had to tweak my.cnf for similar reasons. If I recall, I dropped wait_timeout to 120 and upped max_connections to a few thousand. I had noticed quite a few stale connections just hanging around, so you might get by with just setting the timeout to something decent.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants