USE db_name
This simple query sets the default database for MySQL queries in the current session. Tables in other databases may still be accessed as db_name.tbl_name.