Jump to content

Recommended Posts

Posted

I am connecting to my MySQL server using PHP and getting the error:

 

Warning: mysql_connect() [function.mysql-connect]: Too many connections in file on line #

Failed to connect to server: Too many connections

 

I am using mysql_close() when I redirect or when the script stops. Why am I getting this error? Is there anyway to prevent this from happening?

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...