Thanks to visit codestin.com Credit goes to dev.mysql.com
Syntax:
ccnx.select_db(db_name)
Sets the default (current) database for the current session.
Raises a MySQLInterfaceError exception for any MySQL error returned by the MySQL server.
MySQLInterfaceError