Skip to content
Advertisement

How to change max_connections_per_hour in XAMPP?

In my production environment I’m getting this error:

I don’t have this problem in my development environment so I need to set the max_connections_per_hour to 500 in order to replicate it.

How do I do this? My database is run from the XAMPP control panel.

I don’t see this variable name in my.config, which is also accessed from the XAMPP control panel.

I’m on Windows.

Advertisement

Answer

This is a MySQL account resource limit that is designed to limit the resource comsuption of the server.

If you are fine with allowing more hourly connections to that user, you can change the value of the parameter. I don’t know if this can be controlled from xamp, but, in pure SQL, the following SQL statement would get the job done:

… where ??? is the name of your server.

A 0 value disables the limit.

There are other limitations that you might want to check:

User contributions licensed under: CC BY-SA
10 People found this is helpful
Advertisement