how to open database in mysql code example Example 1: connect to mysql database ubuntu mysql -u USERNAME -p Example 2: how to open database in mysql use DBNAME;