從服務器上的數據庫export一個數據庫,轉移到本地數據庫上,view部分報錯,1449The user specified as a definer ('root'@'%') does not exist。
原因是權限問題,在數據庫中執行以下命令:
grant all privileges on *.* to root@"%" identified by "Passwd"
解決
從服務器上的數據庫export一個數據庫,轉移到本地數據庫上,view部分報錯,1449The user specified as a definer ('root'@'%') does not exist。
原因是權限問題,在數據庫中執行以下命令:
grant all privileges on *.* to root@"%" identified by "Passwd"
解決