2021-07-28   


遇到两个错误,在这里记一下。
一个是:

mysqldump: Error: 'Access denied; you need (at least one of) the PROCESS privilege(s) for this operation' when trying to dump tablespaces

根据字面意思看是dump tablespaces需要啥权限,但是我不需要dump tablespaces,dump时加个参数--no-tablespaces解决。

第二个是:

View  references invalid table(s) or column(s) or function(s) or definer/invoker of view lack rights to use them when using LOCK TABLES

首先我视图肯定是没有问题的,网上查了解决办法。
https://dba.stackexchange.com/questions/107893/mysqldump-error-on-common-schema
加参数--single-transaction 解决。

Q.E.D.


我并不是什么都知道,我只是知道我所知道的。