Wondering if there is a way to use a python script to attempt a connection to a group mysql database hosts? Ideally there would be X number of hosts and it would try connecting to each, then fail if no connection could be made. I do not believe MySQLdb.connect is capable of handling multiple hosts, maybe I am wrong.
Share
mysqldb.connectis perfectly ok with connecting to multiple hosts: