Solved

MySQL Error: Couldn't connect to MySQL server

Posted on 2010-09-01
5
1,081 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
  • 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

How to run any project with ease

Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
- Combine task lists, docs, spreadsheets, and chat in one
- View and edit from mobile/offline
- Cut down on emails

Join & Write a Comment

Load balancing is the method of dividing the total amount of work performed by one computer between two or more computers. Its aim is to get more work done in the same amount of time, ensuring that all the users get served faster.
Restoring deleted objects in Active Directory has been a standard feature in Active Directory for many years, yet some admins may not know what is available.
This tutorial will walk an individual through locating and launching the BEUtility application and how to execute it on the appropriate database. Log onto the server running the Backup Exec database. In a larger environment, this would generally be …
This tutorial will walk an individual through setting the global and backup job media overwrite and protection periods in Backup Exec 2012. Log onto the Backup Exec Central Administration Server. Examine the services. If all or most of them are stop…

757 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

Need Help in Real-Time?

Connect with top rated Experts

20 Experts available now in Live!

Get 1:1 Help Now