mysql - 如何为 Debezium 连接器的 RDS Mysql 启用二进制日志记录
问题描述
我正在尝试按照文档设置 MySQL Debezium 连接器
https://debezium.io/documentation/reference/0.10/connectors/mysql.html
我想为 RDS 启用 bin 日志记录,其中我有一个数据库实例的读取器和写入器。
我尝试启用它,但看起来我错过了一些东西:
mysql> show global variables like 'log_bin'; show global variables like 'binlog_format';
+---------------+-------+
| Variable_name | Value |
+---------------+-------+
| log_bin | OFF |
+---------------+-------+
1 row in set (0.19 sec)
+---------------+-------+
| Variable_name | Value |
+---------------+-------+
| binlog_format | ROW |
+---------------+-------+
1 row in set (0.20 sec)
mysql> SHOW BINARY LOGS;
ERROR 1381 (HY000): You are not using binary logging
mysql> call mysql.rds_set_configuration('binlog retention hours', 24);
Query OK, 0 rows affected (0.20 sec)
mysql> SHOW BINARY LOGS;
ERROR 1381 (HY000): You are not using binary logging
mysql> CALL mysql.rds_show_configuration
-> ;
+------------------------+-------+------------------------------------------------------------------------------------------------------+
| name | value | description |
+------------------------+-------+------------------------------------------------------------------------------------------------------+
| binlog retention hours | 24 | binlog retention hours specifies the duration in hours before binary logs are automatically deleted. |
+------------------------+-------+------------------------------------------------------------------------------------------------------+
1 row in set (0.18 sec)
Query OK, 0 rows affected (0.18 sec)
mysql> SHOW BINARY LOGS;
ERROR 1381 (HY000): You are not using binary logging
你能建议我错过什么吗?
解决方案
推荐阅读
- php - 使用 WP Gutenberg Blocks 为 WordPress Multisite 创建默认页面
- spacy - 如何使用 Spacy 合并相同的连续实体类型
- python - 为什么 Python 子类不继承其父类的注解?
- python - 未使用 Google Drive API 获取共享文件夹中的项目列表
- javascript - 使用 lodash/fp 从国家列表中获取货币
- javascript - 如何调用作为变量存储在不同组件中的 JSON 数据?
- c# - 过滤 GraphQL HotChocolate 上的 EF Core Navigation 属性
- git - Grgit:禁用 ssl 验证
- android - 如何使用 MotionEvent.MOVE 在画布位图上移动和缩放
- javascript - 如何根据下拉列表中的选定选项隐藏单个 div