6.9.2.41Â MySQLConnection.database Property
This property sets the current (default) database by executing a
USE
statement. The property can also be used
to retrieve the current database name.
>>> cnx.database = 'test'
>>> cnx.database = 'mysql'
>>> cnx.database
u'mysql'
Returns a string.