(Vox, free hosting) Too many database connections, clear these?

Status
Not open for further replies.

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.
 

Jordan C

New Member
Messages
433
Reaction score
0
Points
0
Thank you. So not related to not closing connections?
At least it made me realise I need to catch connect errors too, spitting out my password probably isn't the best :p
 

realalec

New Member
Messages
1
Reaction score
0
Points
0
I've got a simple wordpress page, no fancy plugins.

Got to the reset page..
"This message will be removed automatically at the start of the next hour."

But 12 hours later its still there...?

any ideas?
 
Status
Not open for further replies.
Top