Jump to content

"Could not connect to the database.." sometimes


Ulysses

Recommended Posts

Getting the occasional error message "Could not connect to the database - check connection details in configuration.php file" now and then for no apparent reason. Both in and out of the admin area.

 

It's occasional, so I can't replicate it, but is really irritating when it happens.

 

I can't figure out how the details in the configuration.php can be wrong sometimes. :?

 

Cheers

Link to comment
Share on other sites

Check your max connections setting in my.cnf :)

Thanks Dominic. I had a squiz at it and it's set to 500!

[mysqld]
set-variable = max_connections=500
safe-show-database
old-passwords = 1

From other examples I've seen around the web, it looks pretty basic though.

 

Do you know much about this setting?

Link to comment
Share on other sites

Hey,

 

Well its really easy, max-connection = total users server wide that can connect to any MySQL database.

 

What errors are you getting, like wrong username/password, MySQL server not found, etc?

 

From,

Adam

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use & Guidelines and understand your posts will initially be pre-moderated