Link to home
Start Free TrialLog in
Avatar of Eduardo Fuerte
Eduardo FuerteFlag for Brazil

asked on

Could you point how to configure MySQL to workaround the 'max_connections_per_hour' error?

Hi Experts

Could you point how to configure MySQL to workaround the 'max_connections_per_hour'  error?

mysqli::real_connect(): (42000/1226): user 'root' has exceeded the 'max_connections_per_hour' resource (current value: 50)

Open in new window


Thanks in advance!
SOLUTION
Avatar of Patrick Bogers
Patrick Bogers
Flag of Netherlands image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of Eduardo Fuerte

ASKER

Hi

Unfortunatelly I get this error going this way:
User generated image
This command runs

GRANT USAGE ON  database_name.*
TO 'root'@'localhost'
WITH MAX_QUERIES_PER_HOUR 1000
MAX_CONNECTIONS_PER_HOUR 100;

Open in new window


Is it sufficient to my purpose?
What do you think abaout?
The link where I obtained the command:
GRANT - Time and Number of Connection Limits
ASKER CERTIFIED SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Hi  lenamtl

Thank you for the confirmation.
The MySQL version is 5.6 - so the command I used is Ok.
Thanks for help!
Djeez youre welcome. I did not get any notification for this thread until points were given. Strange.

Anyway good there are more experts that know mysql.

Cheers