From 74ba02f45f0b1b9fe9a9c8271f969127c6e6c7ae Mon Sep 17 00:00:00 2001 From: yangbin09 <1692207904@qq.com> Date: Wed, 25 Aug 2021 10:24:36 +0800 Subject: [PATCH] [docs] Add FAQ for MySQL 8.0 Public Key Retrieval setting This closes #278 --- docs/content/connectors/mysql-cdc.md | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/docs/content/connectors/mysql-cdc.md b/docs/content/connectors/mysql-cdc.md index 2e45af246..7ef1a5890 100644 --- a/docs/content/connectors/mysql-cdc.md +++ b/docs/content/connectors/mysql-cdc.md @@ -506,3 +506,12 @@ The `table-name` option supports regular expressions to monitor multiple tables #### Q3: ConnectException: Received DML '...' for processing, binlog probably contains events generated with statement or mixed based replication format If there is above exception, please check `binlog_format` is `ROW`, you can check this by running `show variables like '%binlog_format%'` in MySQL client. Please note that even if the `binlog_format` configuration of your database is `ROW`, this configuration can be changed by other sessions, for example, `SET SESSION binlog_format='MIXED'; SET SESSION tx_isolation='REPEATABLE-READ'; COMMIT;`. Please also make sure there are no other session are changing this configuration. + +#### Q4: Mysql8.0 Public Key Retrieval is not allowed ? + +This is because the MySQL user account uses `sha256_password` authentication which requires transporting password under protection like TLS protocol. A simple way is to enable the MySQL user account use naive password. +```sql +-- MySQL +ALTER USER 'username'@'localhost' IDENTIFIED WITH mysql_native_password BY 'password'; +FLUSH PRIVILEGES; +```