mysql备份中遇到了如下错误:
mysqldump: Got error: 1356: View ‘wordpress.v_t1’ references invalid table(s) or column(s) or function(s) or definer/invoker of view lack rights to use them when using LOCK TABLES
原因: 视图引用的表不存在。
原理:mysqldump在备份时要对表加读锁,加锁失败的时候。备份就终止了。
解决方法:在备份时加上–force参数或者把相应的表创建出来
mysql备份报错mysqldump: Got error: 1356: View ‘wordpress.v_t1‘ references invalid table(s) or column(s)
最新推荐文章于 2024-07-03 10:05:53 发布