mysql -h 192.168.1.104 -P3306 -uroot -p 然后输入你安装时设置的MySQL密码
发现Can't connect to MySQL server 你的IP
解决方法:
(1)用localhost 登录 mysql -h localhost -P3306 -uroot -p
(2)use mysql
(3)grant all privileges on *.* to 'root'@'192.168.1.104' identified by 'root';
(4)flush privileges;
问题解决,原因是没有特权privilege