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