mysql conect user code example Example 1: login mysql mysql -u root -p Example 2: login to database mysql terminal show databases;