Stack Exchange network consists of 183 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.
Thanks a lot.. This works.. But could this somehow be improved to include all privileges as I had to look up all privileges in mysql.db table and mysql.user table and mention each one with an OR.
Hi, this does not take into account if only postgres server (service) fails. The machine is still up and has the virtual IP, but the service is not running on that machine.