设置环境变量,路径为
C:\Program Files (x86)\MySQL\MySQL Server 5.0\bin
再win+R cmd
mysql -uroot -p123456
u用户名 p密码
成功