GreatSQL社区

搜索

[已解决] mysqlbackup备份失败

548 5 2022-10-18 10:58
GreatSQL8.0.25-16版本 利用MySQL企业版工具mysqlbackup 8.0.25 进行备份出现报错如下:

ERROR: MySQL Query 'SELECT 1 FROM `mysql`.`compression_dictionary` LIMIT 1': 3554, Access to system table 'mysql.compression_dictionary' is rejected.

看上去是隐藏的字典表无法读取,该如何解决?还是说目前版本只能使用Xtrabackup 进行备份



全部回复(5)
yejr 2022-10-19 17:54:54
这个元数据表是percona server里加入的 https://docs.percona.com/percona ... ressed_columns.html
看看 mysqlbackup 工具里有没有 --force 或者 --ignore 之类的选项,跳过这个错误或这个元数据表。
cai996 2022-10-19 18:04:21
yejr 发表于 2022-10-19 17:54
这个元数据表是percona server里加入的 https://docs.percona.com/percona-server/8.0/flexibility/compres ...

--force是默认参数等于已经加上了。
--ignore没有这个参数
yejr 2022-10-20 16:26:37
cai996 发表于 2022-10-19 18:04
--force是默认参数等于已经加上了。
--ignore没有这个参数

参考文档 https://dev.mysql.com/doc/mysql- ... qlbackup.usage.html
看看选项 --exclude-tables        感觉应该有戏
cai996 2022-10-21 14:57:54
yejr 发表于 2022-10-19 17:54
这个元数据表是percona server里加入的 https://docs.percona.com/percona-server/8.0/flexibility/compres ...

INFORMATION_SCHEMA Tables¶

This feature implements two new INFORMATION_SCHEMA tables.
INFORMATION_SCHEMA.COMPRESSION_DICTIONARY¶
Column Name         Description
‘BIGINT(21)_UNSIGNED dict_version’         ‘dictionary version’
‘VARCHAR(64) dict_name’         ‘dictionary name’
‘BLOB dict_data’         ‘compression dictionary string’

This table provides a view of the internal compression dictionary. The SUPER privilege is required to query it.

官方文档里面说这个表是在INFORMATION_SCHEMA 库里面的,并没提及mysql库也存在这张表
yejr 2022-10-21 16:15:52
cai996 发表于 2022-10-21 14:57
INFORMATION_SCHEMA Tables¶

This feature implements two new INFORMATION_SCHEMA tables.

不管他有没有,直接指定 execlude 看看
cai996

2

主题

0

博客

6

贡献

新手上路

Rank: 1

积分
10

合作电话:010-64087828

社区邮箱:greatsql@greatdb.com

社区公众号
社区小助手
QQ群
GMT+8, 2024-3-28 18:48 , Processed in 0.019143 second(s), 16 queries , Redis On.
快速回复 返回顶部 返回列表