fixed bug with monitoring after the MySQL server is stopped and then sta...

...rted