- 报错如下:
mysqldump: Got error: 1449: The user specified as a definer ('skip-grants user'@'skip-grants host') does not exist when using LOCK TABLES

image.png
- 首先查看库中存在哪些视图:
show table status where comment='view';
image.png
image.png- 查看视图的属主(其中有个字段为DEFINER)
show create view server;
image.png
可以发现该视图的属主为skip-grants user@skip-grants host证实了报错原因
- 找到报错原因后可使用两种方法恢复正常备份
- 简单直接,在配置文件中切换为免密身份 直接删除该视图
image.png
image.png
然后再进行备份操作即可成功:
image.png
方法2:修改该视图的属主
链接如下:
https://www.cnblogs.com/zhongJaywang/p/6007688.html
http://blog.sina.com.cn/s/blog_3fba24680102xh8t.html

image.png

image.png
修改成功后即可正常备份





