#1.打開cmd運行mysql -->mysql -u root -p; #2.選擇數據庫 -->use test # 全部人以root 名 以abc爲密碼訪問個人test數據庫 3.grant all privileges on *.* to root@"%" identified by 'abc' with grant option 4.flush privileges