1、在 Windows系统按快捷键win+R,文本框输入cmd进入Windows系统cmd命令行 2、输入mysql -u root -p 3、退出sql时 输入exit,quit无反应,输入\q,成功显示Bye并退出