在使用mysql時出現問題: The user specified as a definer ('root'@'%') does not exist。
通常是因爲root用戶對全局host無訪問權限。所以只要給root用戶添加一個訪問權限便可。
解決辦法:
登錄mysql ,執行 mysql -u root -pPasswd mysql >grant all privileges on *.* to root@"%" identified by "Passwd" ; mysql >flush privileges;