Issue with Placing server into Maintenance mode
Posted: Thu Jun 21, 2018 12:49 pm
Hi,
We are trying to place the server into maintenance mode through API using script, the script is working on other servers but it is failing from one host.
We are receiving below error while placing the server into maintenance mode.
Invoke-MySQLQuery : Exception calling "Open" with "0" argument(s): "Host 'XXXXX' is blocked because of many
connection errors; unblock with 'mysqladmin flush-hosts'"
At C:\SYSLAN\SYS\TOOLS\RWEST_Blackout\Nagios_Blackout\Nagios_Maintenance_OnPrem.ps1:346 char:17
When we search this error, we found below URL
https://chartio.com/resources/tutorials ... mazon-rds/
in the URL they mentioned run the command FLUSH ALL from MySQL promt.
Can you let us know if we can run this command on MySQL database ?
We are trying to place the server into maintenance mode through API using script, the script is working on other servers but it is failing from one host.
We are receiving below error while placing the server into maintenance mode.
Invoke-MySQLQuery : Exception calling "Open" with "0" argument(s): "Host 'XXXXX' is blocked because of many
connection errors; unblock with 'mysqladmin flush-hosts'"
At C:\SYSLAN\SYS\TOOLS\RWEST_Blackout\Nagios_Blackout\Nagios_Maintenance_OnPrem.ps1:346 char:17
When we search this error, we found below URL
https://chartio.com/resources/tutorials ... mazon-rds/
in the URL they mentioned run the command FLUSH ALL from MySQL promt.
Can you let us know if we can run this command on MySQL database ?