mysql_select_db — Selects a database as default
int mysql_select_db(MYSQL * mysql,
const char * db);Sets the current active database on the server that's associated with the specified link identifier. Every subsequent api call will be made on the active database.
mysqlA mysql handle, which was previously allocated by mysql_init() or mysql_real_connect().
dbThe default database name