Want to protect your cyber security and still get fast solutions? Ask a secure question today.Go Premium

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 1121
  • Last Modified:

MySQL Error: Couldn't connect to MySQL server

Lately I've been getting this error:

Warning: mysql_connect() [function.mysql-connect]: User davideo7 already has more than 'max_user_connections' active connections in C:\inetpub\vhosts\vizzed.com\httpdocs\vizzedboard\lib\function.php on line 22

Couldn't connect to MySQL server

I've gotten them before but I set the MySQL server to automatically restart itself since I adjusted the Recovery method for the service.  I did some updates to the server that may have resulted into it not doing a recovery.  Here's my PHP info page
http://www.vizzed.com/phpinfo.php

I have Parallel Plesk on a Windows 2008 Server.
0
davideo7
Asked:
davideo7
  • 3
2 Solutions
 
dehcbad25Commented:
it seems that you are already connected and myabe your limit of connection is 1.
There is 2 ways, 1) make sure you log off, when you disconnect from the database.
2) Add a higher number to the connection number max.
C:\inetpub\vhosts\vizzed.com\httpdocs\vizzedboard\lib\function.php on line 22

 
0
 
shalabhsharmaCommented:
Either restart the MySQL serverice or increase the number of remote connection in you mysql.ini or in function.php that can connect simultaneously to mysql.
0
 
shalabhsharmaCommented:
Either restart the MySQL serverice or increase the number of remote connection in  my.ini  file or in function.php that can connect simultaneously to mysql.
0
 
davideo7Author Commented:
You just said the same thing twice.
0
 
shalabhsharmaCommented:
Sorry.. earlier there was a typo error 'mysql.ini ' it is 'my.ini'
0

Featured Post

[Webinar On Demand] Database Backup and Recovery

Does your company store data on premises, off site, in the cloud, or a combination of these? If you answered “yes”, you need a data backup recovery plan that fits each and every platform. Watch now as as Percona teaches us how to build agile data backup recovery plan.

  • 3
Tackle projects and never again get stuck behind a technical roadblock.
Join Now