一個問題糾結很久,反復確認語法問題。但是后來網上搜了一下,茅塞頓開。特此總結一下。
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 statementmysql> 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。
然后再次執行授權,問題解決。
以上就是簡單的解決方法,感謝大家的閱讀和對武林網的支持。
新聞熱點
疑難解答