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