必须在一个局域网里面
打开cmd运行mysql
进入mysql命令:mysql -u root -p
出现Welcome to the MySQL monitor.即成功
所有人以root 名 以root为密码访问我的mysql 重点!!!
命令1:grant all privileges on . to root@"%" identified by ‘root’ with grant option
命令2:flush privileges
查看连接数据的ip
命令:ipconfig
用最后一个 IPv4 地址
连接的时候都用查看的ip就可以了