Jump to content

Recommended Posts

Posted

Hi

Im very new to creating a website and I had someone install all the php scripts for my new site but I keep getting an erroe saying hte following

Warning: mysql_connect() [function.mysql-connect]: User findmera has already more than 'max_user_connections' active connections in /home/findmera/public_html/admincp/connect.php on line 0

 

I have asked my host to fix they said they did and I need to somehow make sure the script closes the connections instead of leaving them open

How do I change the script to do this?

Posted

Hi Gando,

 

Welcome to the forums.

 

My first guess is that your script is using persistent connections look through the code, and see if there is a mysql_pconnect, if so change it to mysql_connect

Posted

Actually it looks like you are using non-persistent connections already, but apparently aren't closing them. For every mysql_connect(), you need a mysql_close() after you are done with the connection. (more specifically, mysql_close($sqlvariable), replacing $sqlvariable with the variable used to open the connection).

 

 

Are these custom written scripts you are using, or a public package? If it's the latter, you may just need to find an update for the package.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...