程序在調用到數據庫的視圖時報錯,直接在數據庫中打開視圖時也報錯,相似:mysql
經查,是權限問題,解決辦法:sql
運行:grant all privileges on *.* to monitor@"%" identified by ".";數據庫
以後打開視圖時便不會報錯,程序調用也不會報錯。ide
權限問題,受權 給 root ?全部sql 權限spa
mysql> grant all privileges on *.* to root@"%" identified by ".";ci
Query OK, 0 rows affected (0.00 sec)get
mysql> flush privileges;it
Query OK, 0 rows affected (0.00 sec)權限