mysql_connect returns false

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
jasongr
Forum Contributor
Posts: 206
Joined: Tue Jul 27, 2004 6:19 am

mysql_connect returns false

Post by jasongr »

Hello people

I have my database up and running and it handles requests for opening connections with no problems
However, there are cases when the call to mysql_connect fails and the function returns false

This could be due to overload on the mysql server? I am getting ~500 sessions per hour in my site
if so, can I change its configuration?

What else could be causing this?
User avatar
twigletmac
Her Royal Site Adminness
Posts: 5371
Joined: Tue Apr 23, 2002 2:21 am
Location: Essex, UK

Post by twigletmac »

Have you ever managed to print out the mysql error message when the problem occurs?

Mac
Post Reply