MySql錯誤:ERROR 1449 (HY000)

筆者系統爲 mac ,不知怎的,Mysql 居然報以下錯誤:mysql

ERROR 1449 (HY000): The user specified as a definer ('mysql.infoschema'@'localhost') does not exist

一時沒有找到是什麼操做致使的這個錯誤。而後通過查詢,參考文章
解決了問題。sql

登陸ui

$ mysql -uroot -p12345678
$ mysql> show databases;
ERROR 1449 (HY000): The user specified as a definer ('mysql.infoschema'@'localhost') does not exist

修改.net

$ mysql> SET GLOBAL innodb_fast_shutdown = 1;
Query OK, 0 rows affected (0.01 sec)
$ mysql> quit
Bye

更新code

$ mysql_upgrade -uroot -p12345678
mysql_upgrade: [Warning] Using a password on the command line interface can be insecure.
Checking if update is needed.
Checking server version.
Running queries to upgrade MySQL server.
Upgrading system table data.
Checking system database.
mysql.columns_priv                                 OK
mysql.component                                    OK
……
yn.roles                                           OK
yn.users                                           OK
Upgrade process completed successfully.
Checking if update is needed.

從新登陸以後,服務恢復正常。component

相關文章
相關標籤/搜索