daspyda Posted April 10, 2007 Share Posted April 10, 2007 Several of my users at spyderchat.com have been getting the following message intermittently: ************************** Warning: mysql_connect() [function.mysql-connect]: User ***_donalex has already more than 'max_user_connections' active connections in /home/***/public_html/phpBB2/db/mysql4.php on line 48 Warning: mysql_error(): supplied argument is not a valid MySQL-Link resource in /home/***/public_html/phpBB2/db/mysql4.php on line 330 Warning: mysql_errno(): supplied argument is not a valid MySQL-Link resource in /home/***/public_html/phpBB2/db/mysql4.php on line 331 phpBB : Critical Error Could not connect to the database ************************ We rarely have more than 40 people online at once. Please advise, Don Quote Link to comment Share on other sites More sharing options...
daspyda Posted April 10, 2007 Author Share Posted April 10, 2007 sorry for not searching first - never mind - I am finding answers... Quote Link to comment Share on other sites More sharing options...
TCH-Thomas Posted April 10, 2007 Share Posted April 10, 2007 I´m glad you found some answers. Did they also solve it for you? Otherwise, please let us know. By the way, I removed your cpanel username in your post. Quote Link to comment Share on other sites More sharing options...
daspyda Posted April 20, 2007 Author Share Posted April 20, 2007 sorry for not searching first - never mind - I am finding answers... No, I did not find an answer which was corroborated by different people - I need help... I got this: Try adding the following to .htaccess CODE php_flag mysql.allow_persistent off Quote Link to comment Share on other sites More sharing options...
TCH-Andy Posted April 20, 2007 Share Posted April 20, 2007 Did adding that to your .htaccess file not help? Or are you not sure where to add it? Quote Link to comment Share on other sites More sharing options...
TCH-Dick Posted April 20, 2007 Share Posted April 20, 2007 Open public_html/phpBB2/db/mysql4.php and locate the following code >function sql_db($sqlserver, $sqluser, $sqlpassword, $database, $persistency = true) and change it to >function sql_db($sqlserver, $sqluser, $sqlpassword, $database, $persistency = false) that should fix the problem. Quote Link to comment Share on other sites More sharing options...
daspyda Posted April 20, 2007 Author Share Posted April 20, 2007 This morning, I added that code to htaccess...and edited the code as you suggested. Thank you both for your time in assisting me...TCH ROCKS!!!! Quote Link to comment Share on other sites More sharing options...
daspyda Posted April 20, 2007 Author Share Posted April 20, 2007 Well, I made the changes as you guys suggested at about 7:30 EST today - and it's still happening...several times this morning. Thoughts? Quote Link to comment Share on other sites More sharing options...
daspyda Posted April 20, 2007 Author Share Posted April 20, 2007 Fri Apr 20 11:49:29 to Apr 20 11:54:30 SIX MINUTES???? Quote Link to comment Share on other sites More sharing options...
daspyda Posted April 20, 2007 Author Share Posted April 20, 2007 Did adding that to your .htaccess file not help? Or are you not sure where to add it? I put it right after: <IfModule mod_security.c> SecFilterEngine Off SecFilterScanPOST Off </IfModule> php_flag mysql.allow_persistent off Is that correct? Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.