MySQL Connector/Python Developer Guide

10.2.23 MySQLConnection.get_server_info() Method

This method returns the MySQL server information verbatim as a string, for example '5.6.11-log', or None when not connected.