Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

Reset user connection on mysql

Posted on 2010-09-15
6
Medium Priority
?
506 Views
Last Modified: 2012-05-10
please i am getting this error through my php application i think i need to reset the established user connections:

Could not connect: User opt_admin already has more than 'max_user_connections' active connections

can some body tell me the best way to reset this.
0
Comment
Question by:I-Can
  • 3
  • 3
6 Comments
 
LVL 14

Expert Comment

by:shobinsun
ID: 33679788
HI,

Set max_user_connections in php.ini and restart mysql and apache
0
 

Author Comment

by:I-Can
ID: 33679802
the issue i am using online hosting service and con't restart these services
0
 
LVL 14

Expert Comment

by:shobinsun
ID: 33679823
HI,

use ini_set('max_user_connections',500);

in your script
0
 [eBook] Windows Nano Server

Download this FREE eBook and learn all you need to get started with Windows Nano Server, including deployment options, remote management
and troubleshooting tips and tricks

 

Author Comment

by:I-Can
ID: 33679926
i did try it but still getting the same error

i think such setting i have to do it with mysql not php
0
 
LVL 14

Accepted Solution

by:
shobinsun earned 500 total points
ID: 33680243
Hi,

Better to contact the hosting provider to increase the mysql max user connection
0
 

Author Closing Comment

by:I-Can
ID: 33741831
Thanks a lot i called them and they guide me to kill the process responsible for it.
0

Featured Post

Free Tool: Path Explorer

An intuitive utility to help find the CSS path to UI elements on a webpage. These paths are used frequently in a variety of front-end development and QA automation tasks.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

Introduction Since I wrote the original article about Handling Date and Time in PHP and MySQL several years ago, it seemed like now was a good time to update it for object-oriented PHP.  This article does that, replacing as much as possible the pr…
In this blog post, we’ll look at how using thread_statistics can cause high memory usage.
In this video, Percona Solution Engineer Rick Golba discuss how (and why) you implement high availability in a database environment. To discuss how Percona Consulting can help with your design and architecture needs for your database and infrastr…
In this video, Percona Solutions Engineer Barrett Chambers discusses some of the basic syntax differences between MySQL and MongoDB. To learn more check out our webinar on MongoDB administration for MySQL DBA: https://www.percona.com/resources/we…
Suggested Courses
Course of the Month10 days, 1 hour left to enroll

926 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