数据库1449错误

从服务器上的数据库export一个数据库,转移到本地数据库上,view部分报错,1449The user specified as a definer ('root'@'%') does not exist。

原因是权限问题,在数据库中执行以下命令:

  grant all privileges on *.* to root@"%" identified by "Passwd"

解决

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