在命令行中输入 cls //清屏 mysql -V mysql -uroot -p -P3306 -h127.0.0.1(回环地址,指本地机,一般用来测试使用) 退出: mysql > exit; mysql > quit; mysql > \q;