1.登录 # mysql -u root -p 0000 用户名为root 密码为0000 2.退出 MySQL三种退出方式分别如下: mysql > exit mysql > quit mysql > \q