Unable to connect to database ! MySQL said: Too many connections

Status
Not open for further replies.

springbox99

Member
Messages
114
Reaction score
3
Points
18
Hello,
I have problems with my website since yesterday.
For the second times, i'm unable to access to it.
It says : "Unable to connect to database ! MySQL said: Too many connections"

Somebody else have this matter ?

Thank you.

EDIT : I'm on level
 

usama_rasab27

Member
Messages
208
Reaction score
15
Points
18
Hi, could you paste the code here where you connect to the database. Remove the database name, username & password.
 

usama_rasab27

Member
Messages
208
Reaction score
15
Points
18
Well, I'm not really sure if it would, but it's worth a shot. @springbox99 , could you post the 'code' where you connect to the database, remove usernames and passwords.
 

hbazer

Member
Messages
398
Reaction score
7
Points
18
server [ Vox ] -- MySQL error ==>2002<== : ==>Can't connect to local MySQL server through socket '/var/lib/mysql/mysql.sock' (2)<==

server [ Level ] -- MySQL error ==>1040<== : ==>Too many connections<==

There are issues with MySQL on two of the three free-hosting servers at this time
 

apexx10h

New Member
Messages
5
Reaction score
0
Points
1
Same here...looks like we'll have to wait until someone from staff takes a look.
Until then...long live the cache system :D
 

carlcurt

New Member
Messages
14
Reaction score
0
Points
1
Same here...looks like we'll have to wait until someone from staff takes a look.
Until then...long live the cache system :D
is there a way I can get my site back live while the sql server is down?

I am having withdrawal symptons lol
 

apexx10h

New Member
Messages
5
Reaction score
0
Points
1
is there a way I can get my site back live while the sql server is down?

I am having withdrawal symptons lol

It is but it requires some php knowledge:
Assuming you have a copy of your website (+db) on your computer, you can generate some static (html) pages with the content, upload them in a directory of your main website and write a short script to display these pages instead, when the database is offline. Then...another small script should update these files whenever the database is online and there's a newer version -see php: ob_start() / ob_get_contents() / ob_flush(). This way you won't have to query the database to generate every page a visitor requests: just serve the static pages.
 

rakelx10

New Member
Messages
2
Reaction score
0
Points
1
I'm having the same issue, tried creating a new user for my database but nothing works :-/
 
Status
Not open for further replies.
Top