The MySQL server is running with the --skip-grant-tables option so it cannot execute this statement


skip-grant-tables下mysql


GRANT ALL PRIVILEGES ON *.* TO helei IDENTIFIED BY 'MANAGER' WITH GRANT OPTION;sql

執行這句時候錯誤:
ERROR 1290 (HY000): The MySQL server is running with the --skip-grant-tables option so it cannot execute this statementide

mysql> GRANT ALL PRIVILEGES ON *.* TO helei IDENTIFIED BY 'MANAGER' WITH GRANT OPTION;this

ERROR 1290 (HY000): The MySQL server is running with the --skip-grant-tables option so it cannot execute this statementserver


這個時候咱們只須要xml


flush privilegesip


一下,在添加用戶就OK了,it

mysql> flush privileges;
Query OK, 0 rows affected (0.01 sec)io

mysql> GRANT ALL PRIVILEGES ON *.* TO helei IDENTIFIED BY 'MANAGER' WITH GRANT OPTION;
Query OK, 0 rows affected (0.00 sec)table

這個時候咱們成功搞定了,再登陸就能夠了。

若是報錯以下信息:

Error: Cannot retrieve repository metadata (repomd.xml) for repository: InstallMedia. Please verify its path and try again
 You could try using --skip-broken to work around the problem
 You could try running: rpm -Va --nofiles --nodigest

咱們只要到/etc/yum.repo.s下面把packetxxxx.repo和redhat.repo兩個文件刪除掉,再啓動就能夠了,

相關文章
相關標籤/搜索