1.关闭虚机防火墙
2.Host 'xxx' is not allowed to connect to this MySQL server"
登陆虚机mysql : mysql -uroot -p
#选择数据库
use mysql;
#查看用户
select user,host from user;
#更新用户
update user set host='%' where user='root' and host='127.0.0.1';
#更新权限
flush privileges;
2.mysql -uroot -p 提示 'mysql' 不是内部或外部命令,也不是可运行的程序
或批处理文件
进入mysql安装目录 ,输入:mysqld.exe -install