Jordan C
New Member
- Messages
 - 433
 
- Reaction score
 - 0
 
- Points
 - 0
 
Hi,
I was connecting to my database using the PDO method. I get the message:
exception 'PDOException' with message 'SQLSTATE[HY000] [1040] Too many connections' in [xxxxxxxx] Stack trace: #0 [xxxxxxxxx]: PDO->__construct[... (more information on my connection)
Turns out I was not closing my connection to the database properly (setting the connection object to null when I'm done).
I have changed this now but I'm picking for my database to connect again I need to clear out these old connections.
Is this the case and how do I do this, or is it just some server problem at the moment?
Thanks and I hope you can help.
			
			I was connecting to my database using the PDO method. I get the message:
exception 'PDOException' with message 'SQLSTATE[HY000] [1040] Too many connections' in [xxxxxxxx] Stack trace: #0 [xxxxxxxxx]: PDO->__construct[... (more information on my connection)
Turns out I was not closing my connection to the database properly (setting the connection object to null when I'm done).
I have changed this now but I'm picking for my database to connect again I need to clear out these old connections.
Is this the case and how do I do this, or is it just some server problem at the moment?
Thanks and I hope you can help.