mysql 让别人连接我的数据库

1.打开cmd运行mysql

2.use mysql
# 所有人以root 名 以abc为密码访问我的mysql
3.grant all privileges on *.* to root@"%" identified by 'abc' with grant option
4.flush privileges