how to open database in mysql command line code example Example: how to open database in mysql use DBNAME;