mysql :The user specified ... does not exist 报错
生活随笔
收集整理的這篇文章主要介紹了
mysql :The user specified ... does not exist 报错
小編覺得挺不錯的,現在分享給大家,幫大家做個參考.
2019獨角獸企業重金招聘Python工程師標準>>>
程序在調用到數據庫的視圖時報錯,直接在數據庫中打開視圖時也報錯,類似:
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)
轉載于:https://my.oschina.net/u/2262481/blog/1838568
總結
以上是生活随笔為你收集整理的mysql :The user specified ... does not exist 报错的全部內容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: 想转行做web前端工程师,必学这6大技能
- 下一篇: 使用sortable插件实现列表中表项的