Jump to content

Recommended Posts

Posted

Basically I took over a moodle isntallation that's about 6 years old.

 

From time to time moodle will go down and it will come up with the error message

 

"Error: Database Connection Failed"

 

I'll restart the server and everything is all good. Are there any logs I can view to see if there is anything that happens just prior to the issue? It seems to happen every two weeks or so so I'm thinking there is something setting it off and I'm not 100% wau fait ith Moodle so want to make sure the issue isn't there.

  • 1 year later...
Posted
We periodically hit this problem. admin/dbperformance.php says max connections is 151. I want to change this so I'm looking in xampp/mysql/bin/my.ini but I can't see any connections sections.
Posted
We periodically hit this problem. admin/dbperformance.php says max connections is 151. I want to change this so I'm looking in xampp/mysql/bin/my.ini but I can't see any connections sections.

 

it should be /etc/my.cnf

add soemthing like "max_connections = 500 " and do a "service mysqld restart"

Posted

Thanks CyberNerd but it's Windows...I have added the following to the bottom of the my.ini

 

[Connections]

Max_Connections = 500

 

Will see what happens

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now



×
×
  • Create New...