Solved

MySQL Error: Couldn't connect to MySQL server

Posted on 2010-09-01
5
1,096 Views
Last Modified: 2012-05-10
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
Comment
Question by:davideo7
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 3
5 Comments
 
LVL 2

Accepted Solution

by:
dehcbad25 earned 250 total points
ID: 33579856
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
 
LVL 9

Assisted Solution

by:shalabhsharma
shalabhsharma earned 250 total points
ID: 33582929
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
 
LVL 9

Expert Comment

by:shalabhsharma
ID: 33585218
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
 

Author Comment

by:davideo7
ID: 33588632
You just said the same thing twice.
0
 
LVL 9

Expert Comment

by:shalabhsharma
ID: 33588796
Sorry.. earlier there was a typo error 'mysql.ini ' it is 'my.ini'
0

Featured Post

NFR key for Veeam Backup for Microsoft Office 365

Veeam is happy to provide a free NFR license (for 1 year, up to 10 users). This license allows for the non‑production use of Veeam Backup for Microsoft Office 365 in your home lab without any feature limitations.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

This article shows the steps required to install WordPress on Azure. Web Apps, Mobile Apps, API Apps, or Functions, in Azure all these run in an App Service plan. WordPress is no exception and requires an App Service Plan and Database to install
This article provides a convenient collection of links to Microsoft provided Security Patches for operating systems that have reached their End of Life support cycle. Included operating systems covered by this article are Windows XP,  Windows Server…
This tutorial will walk an individual through the steps necessary to enable the VMware\Hyper-V licensed feature of Backup Exec 2012. In addition, how to add a VMware server and configure a backup job. The first step is to acquire the necessary licen…
This Micro Tutorial hows how you can integrate  Mac OSX to a Windows Active Directory Domain. Apple has made it easy to allow users to bind their macs to a windows domain with relative ease. The following video show how to bind OSX Mavericks to …
Suggested Courses

623 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question