FYI, the code for is_conntected() and ping() has been refactored a bit in later versions.
I didn't get a BrokenPipe error, but can you check on how to reproduce it? I do this:
>>> cnx = mysql.connector.MySQLConnection(database='test')
Now stop the MySQL server, and do:
>>> cnx.is_connected()
This gives an InterfaceError "Expected OK packet" (which might also not be that good)
FYI, the code for is_conntected() and ping() has been refactored a bit in later versions.
I didn't get a BrokenPipe error, but can you check on how to reproduce it?
I do this:
>>> cnx = mysql.connector .MySQLConnectio n(database= 'test')
Now stop the MySQL server, and do:
>>> cnx.is_connected()
This gives an InterfaceError "Expected OK packet" (which might also not be that good)