mysql函數:java.sql.SQLException: The user specified as a definer ('root'@'%') does not exist

如果是導入的數據庫,函數容易發生權限問題:

授權 給 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)

 

 

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章