程式在調用到資料庫的視圖時報錯,直接在資料庫中打開視圖時也報錯,類似: mysql 1449 : The user specified as a definer ('montor'@'%') does not exist mysql 1449 : The user specified as a de ...
程式在調用到資料庫的視圖時報錯,直接在資料庫中打開視圖時也報錯,類似:
mysql 1449 : The user specified as a definer ('montor'@'%') does not exist
經查,是許可權問題,解決辦法: 運行:grant all privileges on *.* to monitor@"%" identified by "."; 之後打開視圖時便不會報錯,程式調用也不會報錯。 源地址的解釋:許可權問題,授權 給 root 所有sql 許可權
MySQL> grant all privileges on *.* to root@"%" identified by ".";
Query OK, 0 rows affected (0.00 sec)
mysql> flush privileges;
Query OK, 0 rows affected (0.00 sec)
轉自:http://blog.csdn.net/qdujunjie/article/details/27696429