Database Connection Failed

Database Connection Failed

by Gilbert Loyogoy -
Number of replies: 3

I am having an error like this when we have around 100+ users but and we will keep on refreshing to make it works again. We are currently hosting in Hostinger


Average of ratings: -
In reply to Gilbert Loyogoy

Re: Database Connection Failed

by Leon Stringer -
Picture of Core developers Picture of Particularly helpful Moodlers

What database is this? MySQL and MariaDB have a max_connections setting, which is 151 by default so 100+ users could exceed this.

You can increase this setting but if your server is managed by a hosting company you may need to contact them to get this change made. (More information on troubleshooting this).

Average of ratings: Useful (1)
In reply to Leon Stringer

Re: Database Connection Failed

by Gilbert Loyogoy -

I contacted my hosting provider and they said that they can't adjust there max connection , he also say that they set it to 500 so I think it's not about the max connection. Any solution sir I badly needed to fix it

In reply to Gilbert Loyogoy

Re: Database Connection Failed

by James Steerpike -

I think the key word here is overloaded. What level of hardware does your host provide?