mysql login shell code example Example 1: login mysql mysql -u root -p Example 2: mysql login console mysql -u USERNAME -p