这个报错是指此用户没有权限
mysqldump: Got error: 1449: The user specified as a definer ('admin'@'%') does not exist when using LOCK TABLES
解决方法:
mysql> GRANT select, lock tables ON dbname.* TO 'admin'@'%';
Query OK, 0 rows affected (0.00 sec)
mysql> flush privileges;
Query OK, 0 rows affected (0.00 sec)
添加以上两条即可
转载于:https://blog.51cto.com/11571922/2287847