一個問題糾結好久,反覆確認語法問題。可是後來網上搜了一下,茅塞頓開。特此總結一下。mysql
mysql> grant select,insert,update,delete on *.* to 'root'@'%'; ERROR 1290 (HY000): The MySQL server is running with the --skip-grant-tables option so it cannot execute this statement mysql> flush privileges; Query OK, 0 rows affected (0.00 sec) mysql> mysql> mysql> mysql> grant select,insert,update,delete on *.* to 'root'@'%'; Query OK, 0 rows affected, 1 warning (0.00 sec) mysql> grant all on *.* to 'root'@'%'; Query OK, 0 rows affected (0.00 sec)
解釋說明:
對root用戶進行受權遠程登陸,而後發現報錯ERROR 1290 (HY000)
而後進行flush privileges。
而後再次執行受權,問題解決。sql