Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

'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 join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants