how to open mysql code example Example 1: mysql cmd command to run mysql.exe –uroot –p Example 2: how to open database in mysql use DBNAME;