1. 程式人生 > >ERROR 1449 (HY000): The user specified as a definer ('root'@'%') does not exist;

ERROR 1449 (HY000): The user specified as a definer ('root'@'%') does not exist;

:ERROR 1449 (HY000): The user specified as a definer ('root'@'%') does not exist;

這個問題以前也遇到過,應該是賬號授權的問題,所以上網搜了一下,果然如此,執行一條sql語句就行了,授權給root 所有host 許可權,sql如下:

mysql> grant all privileges on *.* to [email protected]"%" identified by "WXHWXH";
Query OK, 0 rows affected (0.00 sec)

然後再執行建立測試賬號的語句,果然成功了!