/// <summary> /// Changes database /// </summary> /// <param name="databaseName"></param> public void ChangeDatabase(string databaseName) { if (0 == NativeConnection.mysql_select_db(databaseName)) { this.Dbname = databaseName; } else { throw new MySqlException("MySQLDriverCS Error: change database failed, perhaps user is not authorized to access that database." + NativeConnection.mysql_error()); } }