To access a specific database from the MySQL command line, type 'use database_name;' command. Replace database_name with the database you want to access.E.g.
MySQL [(none)]> use database_name;