1. 程式人生 > >打開視圖 :1449 - the user specified as a definer ('root'@'%')does not exist

打開視圖 :1449 - the user specified as a definer ('root'@'%')does not exist

程序 mys oca name ges exist 一個 sql efi

從一個數據庫數據遷移到本地localhost

程序在調用到數據庫的視圖時報錯,直接在數據庫中打開視圖時也報錯,類似:

mysql 1449 : The user specified as a definer (‘root‘@‘%‘) does not exist

經查,是權限問題,解決辦法: 運行:grant all privileges on *.* to monitor@"%" identified by "."; 之後打開視圖時便不會報錯

打開視圖 :1449 - the user specified as a definer ('root'@'%')does not exist