I need to change max_connect_errors on MySQL but I have no SSH control into the server, can you change it just using a mysql query?
If not can anyone advise how I would change this on amazon's RDS service? It doesn't seem to be in their parameter options.
Thank you!
max_connect_errors: A host is blocked from further connections if there are more than this number of interrupted connections. max_user_connections: Maximum number of simultaneous connections allowed to any given MySQL account.
Summary: The MySQL variable max_connect_errors may be increased from the default of 100 to prevent an error and blocking of a known host connecting to the MySQL database.
Here's how I fixed it:
rds-modify-db-parameter-group -C cert-xxxxxx.pem -K pk-xxxxx.pem --db-parameter-group-name=customdb --parameters "name=max_connect_errors,value=10000,method=immediate"
or it can be done in the console.It seems Amazon now allows changing this parameter.
You might also want to set skip_name_resolve
to 1, unless you need it.
First you need to create an RDS parameter group. This is a "profile" of settings that you can apply to your RDS instance.
Next, you need to use the RDS command line client, or API tools to make the settings modifications to your RDS parameter group.
You also need to make sure the RDS parameter group is applied to your RDS instances
Dave
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With