From 4760d40122e90942f34d4951953aec9c361dd4f2 Mon Sep 17 00:00:00 2001 From: fengyubiao Date: Thu, 20 Jul 2023 19:47:57 +0800 Subject: [PATCH] [fix] [doc] Added solutions for debezium-source-mysql connection errors --- docs/io-cdc-debezium.md | 19 +++++++++++++++++ docs/io-debezium-source.md | 19 +++++++++++++++++ .../version-2.10.x/io-cdc-debezium.md | 19 +++++++++++++++++ .../version-2.10.x/io-debezium-source.md | 19 +++++++++++++++++ .../version-2.11.x/io-cdc-debezium.md | 19 +++++++++++++++++ .../version-2.11.x/io-debezium-source.md | 19 +++++++++++++++++ .../version-2.5.0/io-cdc-debezium.md | 19 +++++++++++++++++ .../version-2.5.0/io-debezium-source.md | 21 ++++++++++++++++++- .../version-2.5.1/io-cdc-debezium.md | 19 +++++++++++++++++ .../version-2.5.1/io-debezium-source.md | 19 +++++++++++++++++ .../version-2.5.2/io-cdc-debezium.md | 19 +++++++++++++++++ .../version-2.5.2/io-debezium-source.md | 19 +++++++++++++++++ .../version-2.6.0/io-cdc-debezium.md | 19 +++++++++++++++++ .../version-2.6.0/io-debezium-source.md | 19 +++++++++++++++++ .../version-2.6.1/io-cdc-debezium.md | 19 +++++++++++++++++ .../version-2.6.1/io-debezium-source.md | 19 +++++++++++++++++ .../version-2.6.2/io-cdc-debezium.md | 19 +++++++++++++++++ .../version-2.6.2/io-debezium-source.md | 19 +++++++++++++++++ .../version-2.6.3/io-cdc-debezium.md | 19 +++++++++++++++++ .../version-2.6.3/io-debezium-source.md | 19 +++++++++++++++++ .../version-2.6.4/io-cdc-debezium.md | 19 +++++++++++++++++ .../version-2.6.4/io-debezium-source.md | 19 +++++++++++++++++ .../version-2.7.0/io-cdc-debezium.md | 19 +++++++++++++++++ .../version-2.7.0/io-debezium-source.md | 19 +++++++++++++++++ .../version-2.7.1/io-cdc-debezium.md | 19 +++++++++++++++++ .../version-2.7.1/io-debezium-source.md | 19 +++++++++++++++++ .../version-2.7.2/io-cdc-debezium.md | 19 +++++++++++++++++ .../version-2.7.2/io-debezium-source.md | 19 +++++++++++++++++ .../version-2.7.3/io-cdc-debezium.md | 19 +++++++++++++++++ .../version-2.7.3/io-debezium-source.md | 19 +++++++++++++++++ .../version-2.7.4/io-cdc-debezium.md | 19 +++++++++++++++++ .../version-2.7.4/io-debezium-source.md | 19 +++++++++++++++++ .../version-2.7.5/io-cdc-debezium.md | 19 +++++++++++++++++ .../version-2.7.5/io-debezium-source.md | 19 +++++++++++++++++ .../version-2.8.x/io-cdc-debezium.md | 19 +++++++++++++++++ .../version-2.8.x/io-debezium-source.md | 19 +++++++++++++++++ .../version-2.9.x/io-cdc-debezium.md | 19 +++++++++++++++++ .../version-2.9.x/io-debezium-source.md | 19 +++++++++++++++++ .../version-3.0.x/io-cdc-debezium.md | 19 +++++++++++++++++ .../version-3.0.x/io-debezium-source.md | 19 +++++++++++++++++ 40 files changed, 761 insertions(+), 1 deletion(-) diff --git a/docs/io-cdc-debezium.md b/docs/io-cdc-debezium.md index a905bdf2138b..31d7c32cb618 100644 --- a/docs/io-cdc-debezium.md +++ b/docs/io-cdc-debezium.md @@ -170,6 +170,25 @@ This example shows how to change the data of a MySQL table using the Pulsar Debe 6. A MySQL client pops out. + Change the connection mode to `mysql_native_password` + ``` + mysql> show variables like "caching_sha2_password_auto_generate_rsa_keys"; + +----------------------------------------------+-------+ + | Variable_name | Value | + +----------------------------------------------+-------+ + | caching_sha2_password_auto_generate_rsa_keys | ON | + +----------------------------------------------+-------+ + # if the value of "caching_sha2_password_auto_generate_rsa_keys" is ON, set connection mode to "mysql_native_password". + alter user '{user}'@'{host}' identified with mysql_native_password by {password}; + # check the modified result + mysql> SELECT Host, User, plugin from mysql.user where user={user}; + +-----------+------+-----------------------+ + | Host | User | plugin | + +-----------+------+-----------------------+ + | localhost | root | mysql_native_password | + +-----------+------+-----------------------+ + ``` + Use the following commands to change the data of the table _products_. ``` diff --git a/docs/io-debezium-source.md b/docs/io-debezium-source.md index dbc9ed3090be..5953c8ef15eb 100644 --- a/docs/io-debezium-source.md +++ b/docs/io-debezium-source.md @@ -220,6 +220,25 @@ This example shows how to change the data of a MySQL table using the Pulsar Debe 6. A MySQL client pops out. + Change the connection mode to `mysql_native_password` + ``` + mysql> show variables like "caching_sha2_password_auto_generate_rsa_keys"; + +----------------------------------------------+-------+ + | Variable_name | Value | + +----------------------------------------------+-------+ + | caching_sha2_password_auto_generate_rsa_keys | ON | + +----------------------------------------------+-------+ + # if the value of "caching_sha2_password_auto_generate_rsa_keys" is ON, set connection mode to "mysql_native_password". + alter user '{user}'@'{host}' identified with mysql_native_password by {password}; + # check the modified result + mysql> SELECT Host, User, plugin from mysql.user where user={user}; + +-----------+------+-----------------------+ + | Host | User | plugin | + +-----------+------+-----------------------+ + | localhost | root | mysql_native_password | + +-----------+------+-----------------------+ + ``` + Use the following commands to change the data of the table _products_. ```bash diff --git a/versioned_docs/version-2.10.x/io-cdc-debezium.md b/versioned_docs/version-2.10.x/io-cdc-debezium.md index 9743342e81a8..a9707c62ff55 100644 --- a/versioned_docs/version-2.10.x/io-cdc-debezium.md +++ b/versioned_docs/version-2.10.x/io-cdc-debezium.md @@ -182,6 +182,25 @@ This example shows how to change the data of a MySQL table using the Pulsar Debe 6. A MySQL client pops out. + Change the connection mode to `mysql_native_password` + ``` + mysql> show variables like "caching_sha2_password_auto_generate_rsa_keys"; + +----------------------------------------------+-------+ + | Variable_name | Value | + +----------------------------------------------+-------+ + | caching_sha2_password_auto_generate_rsa_keys | ON | + +----------------------------------------------+-------+ + # if the value of "caching_sha2_password_auto_generate_rsa_keys" is ON, set connection mode to "mysql_native_password". + alter user '{user}'@'{host}' identified with mysql_native_password by {password}; + # check the modified result + mysql> SELECT Host, User, plugin from mysql.user where user={user}; + +-----------+------+-----------------------+ + | Host | User | plugin | + +-----------+------+-----------------------+ + | localhost | root | mysql_native_password | + +-----------+------+-----------------------+ + ``` + Use the following commands to change the data of the table _products_. ``` diff --git a/versioned_docs/version-2.10.x/io-debezium-source.md b/versioned_docs/version-2.10.x/io-debezium-source.md index d5ebed8d89bd..ebdefa55a48d 100644 --- a/versioned_docs/version-2.10.x/io-debezium-source.md +++ b/versioned_docs/version-2.10.x/io-debezium-source.md @@ -241,6 +241,25 @@ This example shows how to change the data of a MySQL table using the Pulsar Debe 6. A MySQL client pops out. + Change the connection mode to `mysql_native_password` + ``` + mysql> show variables like "caching_sha2_password_auto_generate_rsa_keys"; + +----------------------------------------------+-------+ + | Variable_name | Value | + +----------------------------------------------+-------+ + | caching_sha2_password_auto_generate_rsa_keys | ON | + +----------------------------------------------+-------+ + # if the value of "caching_sha2_password_auto_generate_rsa_keys" is ON, set connection mode to "mysql_native_password". + alter user '{user}'@'{host}' identified with mysql_native_password by {password}; + # check the modified result + mysql> SELECT Host, User, plugin from mysql.user where user={user}; + +-----------+------+-----------------------+ + | Host | User | plugin | + +-----------+------+-----------------------+ + | localhost | root | mysql_native_password | + +-----------+------+-----------------------+ + ``` + Use the following commands to change the data of the table _products_. ``` diff --git a/versioned_docs/version-2.11.x/io-cdc-debezium.md b/versioned_docs/version-2.11.x/io-cdc-debezium.md index dc0fae3919a1..d35e0ad74ef8 100644 --- a/versioned_docs/version-2.11.x/io-cdc-debezium.md +++ b/versioned_docs/version-2.11.x/io-cdc-debezium.md @@ -170,6 +170,25 @@ This example shows how to change the data of a MySQL table using the Pulsar Debe 6. A MySQL client pops out. + Change the connection mode to `mysql_native_password` + ``` + mysql> show variables like "caching_sha2_password_auto_generate_rsa_keys"; + +----------------------------------------------+-------+ + | Variable_name | Value | + +----------------------------------------------+-------+ + | caching_sha2_password_auto_generate_rsa_keys | ON | + +----------------------------------------------+-------+ + # if the value of "caching_sha2_password_auto_generate_rsa_keys" is ON, set connection mode to "mysql_native_password". + alter user '{user}'@'{host}' identified with mysql_native_password by {password}; + # check the modified result + mysql> SELECT Host, User, plugin from mysql.user where user={user}; + +-----------+------+-----------------------+ + | Host | User | plugin | + +-----------+------+-----------------------+ + | localhost | root | mysql_native_password | + +-----------+------+-----------------------+ + ``` + Use the following commands to change the data of the table _products_. ``` diff --git a/versioned_docs/version-2.11.x/io-debezium-source.md b/versioned_docs/version-2.11.x/io-debezium-source.md index 0b0bb359924b..a67fa7fbfeb7 100644 --- a/versioned_docs/version-2.11.x/io-debezium-source.md +++ b/versioned_docs/version-2.11.x/io-debezium-source.md @@ -220,6 +220,25 @@ This example shows how to change the data of a MySQL table using the Pulsar Debe 6. A MySQL client pops out. + Change the connection mode to `mysql_native_password` + ``` + mysql> show variables like "caching_sha2_password_auto_generate_rsa_keys"; + +----------------------------------------------+-------+ + | Variable_name | Value | + +----------------------------------------------+-------+ + | caching_sha2_password_auto_generate_rsa_keys | ON | + +----------------------------------------------+-------+ + # if the value of "caching_sha2_password_auto_generate_rsa_keys" is ON, set connection mode to "mysql_native_password". + alter user '{user}'@'{host}' identified with mysql_native_password by {password}; + # check the modified result + mysql> SELECT Host, User, plugin from mysql.user where user={user}; + +-----------+------+-----------------------+ + | Host | User | plugin | + +-----------+------+-----------------------+ + | localhost | root | mysql_native_password | + +-----------+------+-----------------------+ + ``` + Use the following commands to change the data of the table _products_. ```bash diff --git a/versioned_docs/version-2.5.0/io-cdc-debezium.md b/versioned_docs/version-2.5.0/io-cdc-debezium.md index d0ede9c211e7..c2aaa3eac88b 100644 --- a/versioned_docs/version-2.5.0/io-cdc-debezium.md +++ b/versioned_docs/version-2.5.0/io-cdc-debezium.md @@ -180,6 +180,25 @@ This example shows how to change the data of a MySQL table using the Pulsar Debe 6. A MySQL client pops out. + Change the connection mode to `mysql_native_password` + ``` + mysql> show variables like "caching_sha2_password_auto_generate_rsa_keys"; + +----------------------------------------------+-------+ + | Variable_name | Value | + +----------------------------------------------+-------+ + | caching_sha2_password_auto_generate_rsa_keys | ON | + +----------------------------------------------+-------+ + # if the value of "caching_sha2_password_auto_generate_rsa_keys" is ON, set connection mode to "mysql_native_password". + alter user '{user}'@'{host}' identified with mysql_native_password by {password}; + # check the modified result + mysql> SELECT Host, User, plugin from mysql.user where user={user}; + +-----------+------+-----------------------+ + | Host | User | plugin | + +-----------+------+-----------------------+ + | localhost | root | mysql_native_password | + +-----------+------+-----------------------+ + ``` + Use the following commands to change the data of the table _products_. ``` diff --git a/versioned_docs/version-2.5.0/io-debezium-source.md b/versioned_docs/version-2.5.0/io-debezium-source.md index b94723915f31..8be0f670a395 100644 --- a/versioned_docs/version-2.5.0/io-debezium-source.md +++ b/versioned_docs/version-2.5.0/io-debezium-source.md @@ -172,6 +172,25 @@ This example shows how to change the data of a MySQL table using the Pulsar Debe 6. A MySQL client pops out. + Change the connection mode to `mysql_native_password` + ``` + mysql> show variables like "caching_sha2_password_auto_generate_rsa_keys"; + +----------------------------------------------+-------+ + | Variable_name | Value | + +----------------------------------------------+-------+ + | caching_sha2_password_auto_generate_rsa_keys | ON | + +----------------------------------------------+-------+ + # if the value of "caching_sha2_password_auto_generate_rsa_keys" is ON, set connection mode to "mysql_native_password". + alter user '{user}'@'{host}' identified with mysql_native_password by {password}; + # check the modified result + mysql> SELECT Host, User, plugin from mysql.user where user={user}; + +-----------+------+-----------------------+ + | Host | User | plugin | + +-----------+------+-----------------------+ + | localhost | root | mysql_native_password | + +-----------+------+-----------------------+ + ``` + Use the following commands to change the data of the table _products_. ``` @@ -305,7 +324,7 @@ This example shows how to change the data of a PostgreSQL table using the Pulsar ``` -6. A MySQL client pops out. +6. A PostgreSQL client pops out. Use the following commands to change the data of the table _products_. diff --git a/versioned_docs/version-2.5.1/io-cdc-debezium.md b/versioned_docs/version-2.5.1/io-cdc-debezium.md index d0ede9c211e7..c2aaa3eac88b 100644 --- a/versioned_docs/version-2.5.1/io-cdc-debezium.md +++ b/versioned_docs/version-2.5.1/io-cdc-debezium.md @@ -180,6 +180,25 @@ This example shows how to change the data of a MySQL table using the Pulsar Debe 6. A MySQL client pops out. + Change the connection mode to `mysql_native_password` + ``` + mysql> show variables like "caching_sha2_password_auto_generate_rsa_keys"; + +----------------------------------------------+-------+ + | Variable_name | Value | + +----------------------------------------------+-------+ + | caching_sha2_password_auto_generate_rsa_keys | ON | + +----------------------------------------------+-------+ + # if the value of "caching_sha2_password_auto_generate_rsa_keys" is ON, set connection mode to "mysql_native_password". + alter user '{user}'@'{host}' identified with mysql_native_password by {password}; + # check the modified result + mysql> SELECT Host, User, plugin from mysql.user where user={user}; + +-----------+------+-----------------------+ + | Host | User | plugin | + +-----------+------+-----------------------+ + | localhost | root | mysql_native_password | + +-----------+------+-----------------------+ + ``` + Use the following commands to change the data of the table _products_. ``` diff --git a/versioned_docs/version-2.5.1/io-debezium-source.md b/versioned_docs/version-2.5.1/io-debezium-source.md index 78d7457b71af..98fcf21cc844 100644 --- a/versioned_docs/version-2.5.1/io-debezium-source.md +++ b/versioned_docs/version-2.5.1/io-debezium-source.md @@ -183,6 +183,25 @@ This example shows how to change the data of a MySQL table using the Pulsar Debe 6. A MySQL client pops out. + Change the connection mode to `mysql_native_password` + ``` + mysql> show variables like "caching_sha2_password_auto_generate_rsa_keys"; + +----------------------------------------------+-------+ + | Variable_name | Value | + +----------------------------------------------+-------+ + | caching_sha2_password_auto_generate_rsa_keys | ON | + +----------------------------------------------+-------+ + # if the value of "caching_sha2_password_auto_generate_rsa_keys" is ON, set connection mode to "mysql_native_password". + alter user '{user}'@'{host}' identified with mysql_native_password by {password}; + # check the modified result + mysql> SELECT Host, User, plugin from mysql.user where user={user}; + +-----------+------+-----------------------+ + | Host | User | plugin | + +-----------+------+-----------------------+ + | localhost | root | mysql_native_password | + +-----------+------+-----------------------+ + ``` + Use the following commands to change the data of the table _products_. ``` diff --git a/versioned_docs/version-2.5.2/io-cdc-debezium.md b/versioned_docs/version-2.5.2/io-cdc-debezium.md index d0ede9c211e7..c2aaa3eac88b 100644 --- a/versioned_docs/version-2.5.2/io-cdc-debezium.md +++ b/versioned_docs/version-2.5.2/io-cdc-debezium.md @@ -180,6 +180,25 @@ This example shows how to change the data of a MySQL table using the Pulsar Debe 6. A MySQL client pops out. + Change the connection mode to `mysql_native_password` + ``` + mysql> show variables like "caching_sha2_password_auto_generate_rsa_keys"; + +----------------------------------------------+-------+ + | Variable_name | Value | + +----------------------------------------------+-------+ + | caching_sha2_password_auto_generate_rsa_keys | ON | + +----------------------------------------------+-------+ + # if the value of "caching_sha2_password_auto_generate_rsa_keys" is ON, set connection mode to "mysql_native_password". + alter user '{user}'@'{host}' identified with mysql_native_password by {password}; + # check the modified result + mysql> SELECT Host, User, plugin from mysql.user where user={user}; + +-----------+------+-----------------------+ + | Host | User | plugin | + +-----------+------+-----------------------+ + | localhost | root | mysql_native_password | + +-----------+------+-----------------------+ + ``` + Use the following commands to change the data of the table _products_. ``` diff --git a/versioned_docs/version-2.5.2/io-debezium-source.md b/versioned_docs/version-2.5.2/io-debezium-source.md index 78d7457b71af..98fcf21cc844 100644 --- a/versioned_docs/version-2.5.2/io-debezium-source.md +++ b/versioned_docs/version-2.5.2/io-debezium-source.md @@ -183,6 +183,25 @@ This example shows how to change the data of a MySQL table using the Pulsar Debe 6. A MySQL client pops out. + Change the connection mode to `mysql_native_password` + ``` + mysql> show variables like "caching_sha2_password_auto_generate_rsa_keys"; + +----------------------------------------------+-------+ + | Variable_name | Value | + +----------------------------------------------+-------+ + | caching_sha2_password_auto_generate_rsa_keys | ON | + +----------------------------------------------+-------+ + # if the value of "caching_sha2_password_auto_generate_rsa_keys" is ON, set connection mode to "mysql_native_password". + alter user '{user}'@'{host}' identified with mysql_native_password by {password}; + # check the modified result + mysql> SELECT Host, User, plugin from mysql.user where user={user}; + +-----------+------+-----------------------+ + | Host | User | plugin | + +-----------+------+-----------------------+ + | localhost | root | mysql_native_password | + +-----------+------+-----------------------+ + ``` + Use the following commands to change the data of the table _products_. ``` diff --git a/versioned_docs/version-2.6.0/io-cdc-debezium.md b/versioned_docs/version-2.6.0/io-cdc-debezium.md index d63fefc78bf8..e8032254f208 100644 --- a/versioned_docs/version-2.6.0/io-cdc-debezium.md +++ b/versioned_docs/version-2.6.0/io-cdc-debezium.md @@ -180,6 +180,25 @@ This example shows how to change the data of a MySQL table using the Pulsar Debe 6. A MySQL client pops out. + Change the connection mode to `mysql_native_password` + ``` + mysql> show variables like "caching_sha2_password_auto_generate_rsa_keys"; + +----------------------------------------------+-------+ + | Variable_name | Value | + +----------------------------------------------+-------+ + | caching_sha2_password_auto_generate_rsa_keys | ON | + +----------------------------------------------+-------+ + # if the value of "caching_sha2_password_auto_generate_rsa_keys" is ON, set connection mode to "mysql_native_password". + alter user '{user}'@'{host}' identified with mysql_native_password by {password}; + # check the modified result + mysql> SELECT Host, User, plugin from mysql.user where user={user}; + +-----------+------+-----------------------+ + | Host | User | plugin | + +-----------+------+-----------------------+ + | localhost | root | mysql_native_password | + +-----------+------+-----------------------+ + ``` + Use the following commands to change the data of the table _products_. ``` diff --git a/versioned_docs/version-2.6.0/io-debezium-source.md b/versioned_docs/version-2.6.0/io-debezium-source.md index 3dcad205c112..b2c702c75874 100644 --- a/versioned_docs/version-2.6.0/io-debezium-source.md +++ b/versioned_docs/version-2.6.0/io-debezium-source.md @@ -201,6 +201,25 @@ This example shows how to change the data of a MySQL table using the Pulsar Debe 6. A MySQL client pops out. + Change the connection mode to `mysql_native_password` + ``` + mysql> show variables like "caching_sha2_password_auto_generate_rsa_keys"; + +----------------------------------------------+-------+ + | Variable_name | Value | + +----------------------------------------------+-------+ + | caching_sha2_password_auto_generate_rsa_keys | ON | + +----------------------------------------------+-------+ + # if the value of "caching_sha2_password_auto_generate_rsa_keys" is ON, set connection mode to "mysql_native_password". + alter user '{user}'@'{host}' identified with mysql_native_password by {password}; + # check the modified result + mysql> SELECT Host, User, plugin from mysql.user where user={user}; + +-----------+------+-----------------------+ + | Host | User | plugin | + +-----------+------+-----------------------+ + | localhost | root | mysql_native_password | + +-----------+------+-----------------------+ + ``` + Use the following commands to change the data of the table _products_. ``` diff --git a/versioned_docs/version-2.6.1/io-cdc-debezium.md b/versioned_docs/version-2.6.1/io-cdc-debezium.md index d63fefc78bf8..e8032254f208 100644 --- a/versioned_docs/version-2.6.1/io-cdc-debezium.md +++ b/versioned_docs/version-2.6.1/io-cdc-debezium.md @@ -180,6 +180,25 @@ This example shows how to change the data of a MySQL table using the Pulsar Debe 6. A MySQL client pops out. + Change the connection mode to `mysql_native_password` + ``` + mysql> show variables like "caching_sha2_password_auto_generate_rsa_keys"; + +----------------------------------------------+-------+ + | Variable_name | Value | + +----------------------------------------------+-------+ + | caching_sha2_password_auto_generate_rsa_keys | ON | + +----------------------------------------------+-------+ + # if the value of "caching_sha2_password_auto_generate_rsa_keys" is ON, set connection mode to "mysql_native_password". + alter user '{user}'@'{host}' identified with mysql_native_password by {password}; + # check the modified result + mysql> SELECT Host, User, plugin from mysql.user where user={user}; + +-----------+------+-----------------------+ + | Host | User | plugin | + +-----------+------+-----------------------+ + | localhost | root | mysql_native_password | + +-----------+------+-----------------------+ + ``` + Use the following commands to change the data of the table _products_. ``` diff --git a/versioned_docs/version-2.6.1/io-debezium-source.md b/versioned_docs/version-2.6.1/io-debezium-source.md index 3dcad205c112..b2c702c75874 100644 --- a/versioned_docs/version-2.6.1/io-debezium-source.md +++ b/versioned_docs/version-2.6.1/io-debezium-source.md @@ -201,6 +201,25 @@ This example shows how to change the data of a MySQL table using the Pulsar Debe 6. A MySQL client pops out. + Change the connection mode to `mysql_native_password` + ``` + mysql> show variables like "caching_sha2_password_auto_generate_rsa_keys"; + +----------------------------------------------+-------+ + | Variable_name | Value | + +----------------------------------------------+-------+ + | caching_sha2_password_auto_generate_rsa_keys | ON | + +----------------------------------------------+-------+ + # if the value of "caching_sha2_password_auto_generate_rsa_keys" is ON, set connection mode to "mysql_native_password". + alter user '{user}'@'{host}' identified with mysql_native_password by {password}; + # check the modified result + mysql> SELECT Host, User, plugin from mysql.user where user={user}; + +-----------+------+-----------------------+ + | Host | User | plugin | + +-----------+------+-----------------------+ + | localhost | root | mysql_native_password | + +-----------+------+-----------------------+ + ``` + Use the following commands to change the data of the table _products_. ``` diff --git a/versioned_docs/version-2.6.2/io-cdc-debezium.md b/versioned_docs/version-2.6.2/io-cdc-debezium.md index c467997317fa..eb78fc088325 100644 --- a/versioned_docs/version-2.6.2/io-cdc-debezium.md +++ b/versioned_docs/version-2.6.2/io-cdc-debezium.md @@ -180,6 +180,25 @@ This example shows how to change the data of a MySQL table using the Pulsar Debe 6. A MySQL client pops out. + Change the connection mode to `mysql_native_password` + ``` + mysql> show variables like "caching_sha2_password_auto_generate_rsa_keys"; + +----------------------------------------------+-------+ + | Variable_name | Value | + +----------------------------------------------+-------+ + | caching_sha2_password_auto_generate_rsa_keys | ON | + +----------------------------------------------+-------+ + # if the value of "caching_sha2_password_auto_generate_rsa_keys" is ON, set connection mode to "mysql_native_password". + alter user '{user}'@'{host}' identified with mysql_native_password by {password}; + # check the modified result + mysql> SELECT Host, User, plugin from mysql.user where user={user}; + +-----------+------+-----------------------+ + | Host | User | plugin | + +-----------+------+-----------------------+ + | localhost | root | mysql_native_password | + +-----------+------+-----------------------+ + ``` + Use the following commands to change the data of the table _products_. ``` diff --git a/versioned_docs/version-2.6.2/io-debezium-source.md b/versioned_docs/version-2.6.2/io-debezium-source.md index 3dcad205c112..b2c702c75874 100644 --- a/versioned_docs/version-2.6.2/io-debezium-source.md +++ b/versioned_docs/version-2.6.2/io-debezium-source.md @@ -201,6 +201,25 @@ This example shows how to change the data of a MySQL table using the Pulsar Debe 6. A MySQL client pops out. + Change the connection mode to `mysql_native_password` + ``` + mysql> show variables like "caching_sha2_password_auto_generate_rsa_keys"; + +----------------------------------------------+-------+ + | Variable_name | Value | + +----------------------------------------------+-------+ + | caching_sha2_password_auto_generate_rsa_keys | ON | + +----------------------------------------------+-------+ + # if the value of "caching_sha2_password_auto_generate_rsa_keys" is ON, set connection mode to "mysql_native_password". + alter user '{user}'@'{host}' identified with mysql_native_password by {password}; + # check the modified result + mysql> SELECT Host, User, plugin from mysql.user where user={user}; + +-----------+------+-----------------------+ + | Host | User | plugin | + +-----------+------+-----------------------+ + | localhost | root | mysql_native_password | + +-----------+------+-----------------------+ + ``` + Use the following commands to change the data of the table _products_. ``` diff --git a/versioned_docs/version-2.6.3/io-cdc-debezium.md b/versioned_docs/version-2.6.3/io-cdc-debezium.md index d63fefc78bf8..e8032254f208 100644 --- a/versioned_docs/version-2.6.3/io-cdc-debezium.md +++ b/versioned_docs/version-2.6.3/io-cdc-debezium.md @@ -180,6 +180,25 @@ This example shows how to change the data of a MySQL table using the Pulsar Debe 6. A MySQL client pops out. + Change the connection mode to `mysql_native_password` + ``` + mysql> show variables like "caching_sha2_password_auto_generate_rsa_keys"; + +----------------------------------------------+-------+ + | Variable_name | Value | + +----------------------------------------------+-------+ + | caching_sha2_password_auto_generate_rsa_keys | ON | + +----------------------------------------------+-------+ + # if the value of "caching_sha2_password_auto_generate_rsa_keys" is ON, set connection mode to "mysql_native_password". + alter user '{user}'@'{host}' identified with mysql_native_password by {password}; + # check the modified result + mysql> SELECT Host, User, plugin from mysql.user where user={user}; + +-----------+------+-----------------------+ + | Host | User | plugin | + +-----------+------+-----------------------+ + | localhost | root | mysql_native_password | + +-----------+------+-----------------------+ + ``` + Use the following commands to change the data of the table _products_. ``` diff --git a/versioned_docs/version-2.6.3/io-debezium-source.md b/versioned_docs/version-2.6.3/io-debezium-source.md index 3dcad205c112..b2c702c75874 100644 --- a/versioned_docs/version-2.6.3/io-debezium-source.md +++ b/versioned_docs/version-2.6.3/io-debezium-source.md @@ -201,6 +201,25 @@ This example shows how to change the data of a MySQL table using the Pulsar Debe 6. A MySQL client pops out. + Change the connection mode to `mysql_native_password` + ``` + mysql> show variables like "caching_sha2_password_auto_generate_rsa_keys"; + +----------------------------------------------+-------+ + | Variable_name | Value | + +----------------------------------------------+-------+ + | caching_sha2_password_auto_generate_rsa_keys | ON | + +----------------------------------------------+-------+ + # if the value of "caching_sha2_password_auto_generate_rsa_keys" is ON, set connection mode to "mysql_native_password". + alter user '{user}'@'{host}' identified with mysql_native_password by {password}; + # check the modified result + mysql> SELECT Host, User, plugin from mysql.user where user={user}; + +-----------+------+-----------------------+ + | Host | User | plugin | + +-----------+------+-----------------------+ + | localhost | root | mysql_native_password | + +-----------+------+-----------------------+ + ``` + Use the following commands to change the data of the table _products_. ``` diff --git a/versioned_docs/version-2.6.4/io-cdc-debezium.md b/versioned_docs/version-2.6.4/io-cdc-debezium.md index d63fefc78bf8..e8032254f208 100644 --- a/versioned_docs/version-2.6.4/io-cdc-debezium.md +++ b/versioned_docs/version-2.6.4/io-cdc-debezium.md @@ -180,6 +180,25 @@ This example shows how to change the data of a MySQL table using the Pulsar Debe 6. A MySQL client pops out. + Change the connection mode to `mysql_native_password` + ``` + mysql> show variables like "caching_sha2_password_auto_generate_rsa_keys"; + +----------------------------------------------+-------+ + | Variable_name | Value | + +----------------------------------------------+-------+ + | caching_sha2_password_auto_generate_rsa_keys | ON | + +----------------------------------------------+-------+ + # if the value of "caching_sha2_password_auto_generate_rsa_keys" is ON, set connection mode to "mysql_native_password". + alter user '{user}'@'{host}' identified with mysql_native_password by {password}; + # check the modified result + mysql> SELECT Host, User, plugin from mysql.user where user={user}; + +-----------+------+-----------------------+ + | Host | User | plugin | + +-----------+------+-----------------------+ + | localhost | root | mysql_native_password | + +-----------+------+-----------------------+ + ``` + Use the following commands to change the data of the table _products_. ``` diff --git a/versioned_docs/version-2.6.4/io-debezium-source.md b/versioned_docs/version-2.6.4/io-debezium-source.md index 3dcad205c112..b2c702c75874 100644 --- a/versioned_docs/version-2.6.4/io-debezium-source.md +++ b/versioned_docs/version-2.6.4/io-debezium-source.md @@ -201,6 +201,25 @@ This example shows how to change the data of a MySQL table using the Pulsar Debe 6. A MySQL client pops out. + Change the connection mode to `mysql_native_password` + ``` + mysql> show variables like "caching_sha2_password_auto_generate_rsa_keys"; + +----------------------------------------------+-------+ + | Variable_name | Value | + +----------------------------------------------+-------+ + | caching_sha2_password_auto_generate_rsa_keys | ON | + +----------------------------------------------+-------+ + # if the value of "caching_sha2_password_auto_generate_rsa_keys" is ON, set connection mode to "mysql_native_password". + alter user '{user}'@'{host}' identified with mysql_native_password by {password}; + # check the modified result + mysql> SELECT Host, User, plugin from mysql.user where user={user}; + +-----------+------+-----------------------+ + | Host | User | plugin | + +-----------+------+-----------------------+ + | localhost | root | mysql_native_password | + +-----------+------+-----------------------+ + ``` + Use the following commands to change the data of the table _products_. ``` diff --git a/versioned_docs/version-2.7.0/io-cdc-debezium.md b/versioned_docs/version-2.7.0/io-cdc-debezium.md index d63fefc78bf8..e8032254f208 100644 --- a/versioned_docs/version-2.7.0/io-cdc-debezium.md +++ b/versioned_docs/version-2.7.0/io-cdc-debezium.md @@ -180,6 +180,25 @@ This example shows how to change the data of a MySQL table using the Pulsar Debe 6. A MySQL client pops out. + Change the connection mode to `mysql_native_password` + ``` + mysql> show variables like "caching_sha2_password_auto_generate_rsa_keys"; + +----------------------------------------------+-------+ + | Variable_name | Value | + +----------------------------------------------+-------+ + | caching_sha2_password_auto_generate_rsa_keys | ON | + +----------------------------------------------+-------+ + # if the value of "caching_sha2_password_auto_generate_rsa_keys" is ON, set connection mode to "mysql_native_password". + alter user '{user}'@'{host}' identified with mysql_native_password by {password}; + # check the modified result + mysql> SELECT Host, User, plugin from mysql.user where user={user}; + +-----------+------+-----------------------+ + | Host | User | plugin | + +-----------+------+-----------------------+ + | localhost | root | mysql_native_password | + +-----------+------+-----------------------+ + ``` + Use the following commands to change the data of the table _products_. ``` diff --git a/versioned_docs/version-2.7.0/io-debezium-source.md b/versioned_docs/version-2.7.0/io-debezium-source.md index 6ec18614d50a..8c33602a1f73 100644 --- a/versioned_docs/version-2.7.0/io-debezium-source.md +++ b/versioned_docs/version-2.7.0/io-debezium-source.md @@ -201,6 +201,25 @@ This example shows how to change the data of a MySQL table using the Pulsar Debe 6. A MySQL client pops out. + Change the connection mode to `mysql_native_password` + ``` + mysql> show variables like "caching_sha2_password_auto_generate_rsa_keys"; + +----------------------------------------------+-------+ + | Variable_name | Value | + +----------------------------------------------+-------+ + | caching_sha2_password_auto_generate_rsa_keys | ON | + +----------------------------------------------+-------+ + # if the value of "caching_sha2_password_auto_generate_rsa_keys" is ON, set connection mode to "mysql_native_password". + alter user '{user}'@'{host}' identified with mysql_native_password by {password}; + # check the modified result + mysql> SELECT Host, User, plugin from mysql.user where user={user}; + +-----------+------+-----------------------+ + | Host | User | plugin | + +-----------+------+-----------------------+ + | localhost | root | mysql_native_password | + +-----------+------+-----------------------+ + ``` + Use the following commands to change the data of the table _products_. ``` diff --git a/versioned_docs/version-2.7.1/io-cdc-debezium.md b/versioned_docs/version-2.7.1/io-cdc-debezium.md index d63fefc78bf8..e8032254f208 100644 --- a/versioned_docs/version-2.7.1/io-cdc-debezium.md +++ b/versioned_docs/version-2.7.1/io-cdc-debezium.md @@ -180,6 +180,25 @@ This example shows how to change the data of a MySQL table using the Pulsar Debe 6. A MySQL client pops out. + Change the connection mode to `mysql_native_password` + ``` + mysql> show variables like "caching_sha2_password_auto_generate_rsa_keys"; + +----------------------------------------------+-------+ + | Variable_name | Value | + +----------------------------------------------+-------+ + | caching_sha2_password_auto_generate_rsa_keys | ON | + +----------------------------------------------+-------+ + # if the value of "caching_sha2_password_auto_generate_rsa_keys" is ON, set connection mode to "mysql_native_password". + alter user '{user}'@'{host}' identified with mysql_native_password by {password}; + # check the modified result + mysql> SELECT Host, User, plugin from mysql.user where user={user}; + +-----------+------+-----------------------+ + | Host | User | plugin | + +-----------+------+-----------------------+ + | localhost | root | mysql_native_password | + +-----------+------+-----------------------+ + ``` + Use the following commands to change the data of the table _products_. ``` diff --git a/versioned_docs/version-2.7.1/io-debezium-source.md b/versioned_docs/version-2.7.1/io-debezium-source.md index 6ec18614d50a..8c33602a1f73 100644 --- a/versioned_docs/version-2.7.1/io-debezium-source.md +++ b/versioned_docs/version-2.7.1/io-debezium-source.md @@ -201,6 +201,25 @@ This example shows how to change the data of a MySQL table using the Pulsar Debe 6. A MySQL client pops out. + Change the connection mode to `mysql_native_password` + ``` + mysql> show variables like "caching_sha2_password_auto_generate_rsa_keys"; + +----------------------------------------------+-------+ + | Variable_name | Value | + +----------------------------------------------+-------+ + | caching_sha2_password_auto_generate_rsa_keys | ON | + +----------------------------------------------+-------+ + # if the value of "caching_sha2_password_auto_generate_rsa_keys" is ON, set connection mode to "mysql_native_password". + alter user '{user}'@'{host}' identified with mysql_native_password by {password}; + # check the modified result + mysql> SELECT Host, User, plugin from mysql.user where user={user}; + +-----------+------+-----------------------+ + | Host | User | plugin | + +-----------+------+-----------------------+ + | localhost | root | mysql_native_password | + +-----------+------+-----------------------+ + ``` + Use the following commands to change the data of the table _products_. ``` diff --git a/versioned_docs/version-2.7.2/io-cdc-debezium.md b/versioned_docs/version-2.7.2/io-cdc-debezium.md index d63fefc78bf8..e8032254f208 100644 --- a/versioned_docs/version-2.7.2/io-cdc-debezium.md +++ b/versioned_docs/version-2.7.2/io-cdc-debezium.md @@ -180,6 +180,25 @@ This example shows how to change the data of a MySQL table using the Pulsar Debe 6. A MySQL client pops out. + Change the connection mode to `mysql_native_password` + ``` + mysql> show variables like "caching_sha2_password_auto_generate_rsa_keys"; + +----------------------------------------------+-------+ + | Variable_name | Value | + +----------------------------------------------+-------+ + | caching_sha2_password_auto_generate_rsa_keys | ON | + +----------------------------------------------+-------+ + # if the value of "caching_sha2_password_auto_generate_rsa_keys" is ON, set connection mode to "mysql_native_password". + alter user '{user}'@'{host}' identified with mysql_native_password by {password}; + # check the modified result + mysql> SELECT Host, User, plugin from mysql.user where user={user}; + +-----------+------+-----------------------+ + | Host | User | plugin | + +-----------+------+-----------------------+ + | localhost | root | mysql_native_password | + +-----------+------+-----------------------+ + ``` + Use the following commands to change the data of the table _products_. ``` diff --git a/versioned_docs/version-2.7.2/io-debezium-source.md b/versioned_docs/version-2.7.2/io-debezium-source.md index 6ec18614d50a..8c33602a1f73 100644 --- a/versioned_docs/version-2.7.2/io-debezium-source.md +++ b/versioned_docs/version-2.7.2/io-debezium-source.md @@ -201,6 +201,25 @@ This example shows how to change the data of a MySQL table using the Pulsar Debe 6. A MySQL client pops out. + Change the connection mode to `mysql_native_password` + ``` + mysql> show variables like "caching_sha2_password_auto_generate_rsa_keys"; + +----------------------------------------------+-------+ + | Variable_name | Value | + +----------------------------------------------+-------+ + | caching_sha2_password_auto_generate_rsa_keys | ON | + +----------------------------------------------+-------+ + # if the value of "caching_sha2_password_auto_generate_rsa_keys" is ON, set connection mode to "mysql_native_password". + alter user '{user}'@'{host}' identified with mysql_native_password by {password}; + # check the modified result + mysql> SELECT Host, User, plugin from mysql.user where user={user}; + +-----------+------+-----------------------+ + | Host | User | plugin | + +-----------+------+-----------------------+ + | localhost | root | mysql_native_password | + +-----------+------+-----------------------+ + ``` + Use the following commands to change the data of the table _products_. ``` diff --git a/versioned_docs/version-2.7.3/io-cdc-debezium.md b/versioned_docs/version-2.7.3/io-cdc-debezium.md index d63fefc78bf8..e8032254f208 100644 --- a/versioned_docs/version-2.7.3/io-cdc-debezium.md +++ b/versioned_docs/version-2.7.3/io-cdc-debezium.md @@ -180,6 +180,25 @@ This example shows how to change the data of a MySQL table using the Pulsar Debe 6. A MySQL client pops out. + Change the connection mode to `mysql_native_password` + ``` + mysql> show variables like "caching_sha2_password_auto_generate_rsa_keys"; + +----------------------------------------------+-------+ + | Variable_name | Value | + +----------------------------------------------+-------+ + | caching_sha2_password_auto_generate_rsa_keys | ON | + +----------------------------------------------+-------+ + # if the value of "caching_sha2_password_auto_generate_rsa_keys" is ON, set connection mode to "mysql_native_password". + alter user '{user}'@'{host}' identified with mysql_native_password by {password}; + # check the modified result + mysql> SELECT Host, User, plugin from mysql.user where user={user}; + +-----------+------+-----------------------+ + | Host | User | plugin | + +-----------+------+-----------------------+ + | localhost | root | mysql_native_password | + +-----------+------+-----------------------+ + ``` + Use the following commands to change the data of the table _products_. ``` diff --git a/versioned_docs/version-2.7.3/io-debezium-source.md b/versioned_docs/version-2.7.3/io-debezium-source.md index 6ec18614d50a..8c33602a1f73 100644 --- a/versioned_docs/version-2.7.3/io-debezium-source.md +++ b/versioned_docs/version-2.7.3/io-debezium-source.md @@ -201,6 +201,25 @@ This example shows how to change the data of a MySQL table using the Pulsar Debe 6. A MySQL client pops out. + Change the connection mode to `mysql_native_password` + ``` + mysql> show variables like "caching_sha2_password_auto_generate_rsa_keys"; + +----------------------------------------------+-------+ + | Variable_name | Value | + +----------------------------------------------+-------+ + | caching_sha2_password_auto_generate_rsa_keys | ON | + +----------------------------------------------+-------+ + # if the value of "caching_sha2_password_auto_generate_rsa_keys" is ON, set connection mode to "mysql_native_password". + alter user '{user}'@'{host}' identified with mysql_native_password by {password}; + # check the modified result + mysql> SELECT Host, User, plugin from mysql.user where user={user}; + +-----------+------+-----------------------+ + | Host | User | plugin | + +-----------+------+-----------------------+ + | localhost | root | mysql_native_password | + +-----------+------+-----------------------+ + ``` + Use the following commands to change the data of the table _products_. ``` diff --git a/versioned_docs/version-2.7.4/io-cdc-debezium.md b/versioned_docs/version-2.7.4/io-cdc-debezium.md index d63fefc78bf8..e8032254f208 100644 --- a/versioned_docs/version-2.7.4/io-cdc-debezium.md +++ b/versioned_docs/version-2.7.4/io-cdc-debezium.md @@ -180,6 +180,25 @@ This example shows how to change the data of a MySQL table using the Pulsar Debe 6. A MySQL client pops out. + Change the connection mode to `mysql_native_password` + ``` + mysql> show variables like "caching_sha2_password_auto_generate_rsa_keys"; + +----------------------------------------------+-------+ + | Variable_name | Value | + +----------------------------------------------+-------+ + | caching_sha2_password_auto_generate_rsa_keys | ON | + +----------------------------------------------+-------+ + # if the value of "caching_sha2_password_auto_generate_rsa_keys" is ON, set connection mode to "mysql_native_password". + alter user '{user}'@'{host}' identified with mysql_native_password by {password}; + # check the modified result + mysql> SELECT Host, User, plugin from mysql.user where user={user}; + +-----------+------+-----------------------+ + | Host | User | plugin | + +-----------+------+-----------------------+ + | localhost | root | mysql_native_password | + +-----------+------+-----------------------+ + ``` + Use the following commands to change the data of the table _products_. ``` diff --git a/versioned_docs/version-2.7.4/io-debezium-source.md b/versioned_docs/version-2.7.4/io-debezium-source.md index 6ec18614d50a..8c33602a1f73 100644 --- a/versioned_docs/version-2.7.4/io-debezium-source.md +++ b/versioned_docs/version-2.7.4/io-debezium-source.md @@ -201,6 +201,25 @@ This example shows how to change the data of a MySQL table using the Pulsar Debe 6. A MySQL client pops out. + Change the connection mode to `mysql_native_password` + ``` + mysql> show variables like "caching_sha2_password_auto_generate_rsa_keys"; + +----------------------------------------------+-------+ + | Variable_name | Value | + +----------------------------------------------+-------+ + | caching_sha2_password_auto_generate_rsa_keys | ON | + +----------------------------------------------+-------+ + # if the value of "caching_sha2_password_auto_generate_rsa_keys" is ON, set connection mode to "mysql_native_password". + alter user '{user}'@'{host}' identified with mysql_native_password by {password}; + # check the modified result + mysql> SELECT Host, User, plugin from mysql.user where user={user}; + +-----------+------+-----------------------+ + | Host | User | plugin | + +-----------+------+-----------------------+ + | localhost | root | mysql_native_password | + +-----------+------+-----------------------+ + ``` + Use the following commands to change the data of the table _products_. ``` diff --git a/versioned_docs/version-2.7.5/io-cdc-debezium.md b/versioned_docs/version-2.7.5/io-cdc-debezium.md index d63fefc78bf8..e8032254f208 100644 --- a/versioned_docs/version-2.7.5/io-cdc-debezium.md +++ b/versioned_docs/version-2.7.5/io-cdc-debezium.md @@ -180,6 +180,25 @@ This example shows how to change the data of a MySQL table using the Pulsar Debe 6. A MySQL client pops out. + Change the connection mode to `mysql_native_password` + ``` + mysql> show variables like "caching_sha2_password_auto_generate_rsa_keys"; + +----------------------------------------------+-------+ + | Variable_name | Value | + +----------------------------------------------+-------+ + | caching_sha2_password_auto_generate_rsa_keys | ON | + +----------------------------------------------+-------+ + # if the value of "caching_sha2_password_auto_generate_rsa_keys" is ON, set connection mode to "mysql_native_password". + alter user '{user}'@'{host}' identified with mysql_native_password by {password}; + # check the modified result + mysql> SELECT Host, User, plugin from mysql.user where user={user}; + +-----------+------+-----------------------+ + | Host | User | plugin | + +-----------+------+-----------------------+ + | localhost | root | mysql_native_password | + +-----------+------+-----------------------+ + ``` + Use the following commands to change the data of the table _products_. ``` diff --git a/versioned_docs/version-2.7.5/io-debezium-source.md b/versioned_docs/version-2.7.5/io-debezium-source.md index 6ec18614d50a..8c33602a1f73 100644 --- a/versioned_docs/version-2.7.5/io-debezium-source.md +++ b/versioned_docs/version-2.7.5/io-debezium-source.md @@ -201,6 +201,25 @@ This example shows how to change the data of a MySQL table using the Pulsar Debe 6. A MySQL client pops out. + Change the connection mode to `mysql_native_password` + ``` + mysql> show variables like "caching_sha2_password_auto_generate_rsa_keys"; + +----------------------------------------------+-------+ + | Variable_name | Value | + +----------------------------------------------+-------+ + | caching_sha2_password_auto_generate_rsa_keys | ON | + +----------------------------------------------+-------+ + # if the value of "caching_sha2_password_auto_generate_rsa_keys" is ON, set connection mode to "mysql_native_password". + alter user '{user}'@'{host}' identified with mysql_native_password by {password}; + # check the modified result + mysql> SELECT Host, User, plugin from mysql.user where user={user}; + +-----------+------+-----------------------+ + | Host | User | plugin | + +-----------+------+-----------------------+ + | localhost | root | mysql_native_password | + +-----------+------+-----------------------+ + ``` + Use the following commands to change the data of the table _products_. ``` diff --git a/versioned_docs/version-2.8.x/io-cdc-debezium.md b/versioned_docs/version-2.8.x/io-cdc-debezium.md index 1e574e771a96..4b984c4906b1 100644 --- a/versioned_docs/version-2.8.x/io-cdc-debezium.md +++ b/versioned_docs/version-2.8.x/io-cdc-debezium.md @@ -180,6 +180,25 @@ This example shows how to change the data of a MySQL table using the Pulsar Debe 6. A MySQL client pops out. + Change the connection mode to `mysql_native_password` + ``` + mysql> show variables like "caching_sha2_password_auto_generate_rsa_keys"; + +----------------------------------------------+-------+ + | Variable_name | Value | + +----------------------------------------------+-------+ + | caching_sha2_password_auto_generate_rsa_keys | ON | + +----------------------------------------------+-------+ + # if the value of "caching_sha2_password_auto_generate_rsa_keys" is ON, set connection mode to "mysql_native_password". + alter user '{user}'@'{host}' identified with mysql_native_password by {password}; + # check the modified result + mysql> SELECT Host, User, plugin from mysql.user where user={user}; + +-----------+------+-----------------------+ + | Host | User | plugin | + +-----------+------+-----------------------+ + | localhost | root | mysql_native_password | + +-----------+------+-----------------------+ + ``` + Use the following commands to change the data of the table _products_. ``` diff --git a/versioned_docs/version-2.8.x/io-debezium-source.md b/versioned_docs/version-2.8.x/io-debezium-source.md index 2ed7ad01dab5..bfdcb3c5f4ba 100644 --- a/versioned_docs/version-2.8.x/io-debezium-source.md +++ b/versioned_docs/version-2.8.x/io-debezium-source.md @@ -214,6 +214,25 @@ This example shows how to change the data of a MySQL table using the Pulsar Debe 6. A MySQL client pops out. + Change the connection mode to `mysql_native_password` + ``` + mysql> show variables like "caching_sha2_password_auto_generate_rsa_keys"; + +----------------------------------------------+-------+ + | Variable_name | Value | + +----------------------------------------------+-------+ + | caching_sha2_password_auto_generate_rsa_keys | ON | + +----------------------------------------------+-------+ + # if the value of "caching_sha2_password_auto_generate_rsa_keys" is ON, set connection mode to "mysql_native_password". + alter user '{user}'@'{host}' identified with mysql_native_password by {password}; + # check the modified result + mysql> SELECT Host, User, plugin from mysql.user where user={user}; + +-----------+------+-----------------------+ + | Host | User | plugin | + +-----------+------+-----------------------+ + | localhost | root | mysql_native_password | + +-----------+------+-----------------------+ + ``` + Use the following commands to change the data of the table _products_. ``` diff --git a/versioned_docs/version-2.9.x/io-cdc-debezium.md b/versioned_docs/version-2.9.x/io-cdc-debezium.md index 1e574e771a96..4b984c4906b1 100644 --- a/versioned_docs/version-2.9.x/io-cdc-debezium.md +++ b/versioned_docs/version-2.9.x/io-cdc-debezium.md @@ -180,6 +180,25 @@ This example shows how to change the data of a MySQL table using the Pulsar Debe 6. A MySQL client pops out. + Change the connection mode to `mysql_native_password` + ``` + mysql> show variables like "caching_sha2_password_auto_generate_rsa_keys"; + +----------------------------------------------+-------+ + | Variable_name | Value | + +----------------------------------------------+-------+ + | caching_sha2_password_auto_generate_rsa_keys | ON | + +----------------------------------------------+-------+ + # if the value of "caching_sha2_password_auto_generate_rsa_keys" is ON, set connection mode to "mysql_native_password". + alter user '{user}'@'{host}' identified with mysql_native_password by {password}; + # check the modified result + mysql> SELECT Host, User, plugin from mysql.user where user={user}; + +-----------+------+-----------------------+ + | Host | User | plugin | + +-----------+------+-----------------------+ + | localhost | root | mysql_native_password | + +-----------+------+-----------------------+ + ``` + Use the following commands to change the data of the table _products_. ``` diff --git a/versioned_docs/version-2.9.x/io-debezium-source.md b/versioned_docs/version-2.9.x/io-debezium-source.md index 4106a22de66b..f3e5389a1b6f 100644 --- a/versioned_docs/version-2.9.x/io-debezium-source.md +++ b/versioned_docs/version-2.9.x/io-debezium-source.md @@ -239,6 +239,25 @@ This example shows how to change the data of a MySQL table using the Pulsar Debe 6. A MySQL client pops out. + Change the connection mode to `mysql_native_password` + ``` + mysql> show variables like "caching_sha2_password_auto_generate_rsa_keys"; + +----------------------------------------------+-------+ + | Variable_name | Value | + +----------------------------------------------+-------+ + | caching_sha2_password_auto_generate_rsa_keys | ON | + +----------------------------------------------+-------+ + # if the value of "caching_sha2_password_auto_generate_rsa_keys" is ON, set connection mode to "mysql_native_password". + alter user '{user}'@'{host}' identified with mysql_native_password by {password}; + # check the modified result + mysql> SELECT Host, User, plugin from mysql.user where user={user}; + +-----------+------+-----------------------+ + | Host | User | plugin | + +-----------+------+-----------------------+ + | localhost | root | mysql_native_password | + +-----------+------+-----------------------+ + ``` + Use the following commands to change the data of the table _products_. ``` diff --git a/versioned_docs/version-3.0.x/io-cdc-debezium.md b/versioned_docs/version-3.0.x/io-cdc-debezium.md index a905bdf2138b..31d7c32cb618 100644 --- a/versioned_docs/version-3.0.x/io-cdc-debezium.md +++ b/versioned_docs/version-3.0.x/io-cdc-debezium.md @@ -170,6 +170,25 @@ This example shows how to change the data of a MySQL table using the Pulsar Debe 6. A MySQL client pops out. + Change the connection mode to `mysql_native_password` + ``` + mysql> show variables like "caching_sha2_password_auto_generate_rsa_keys"; + +----------------------------------------------+-------+ + | Variable_name | Value | + +----------------------------------------------+-------+ + | caching_sha2_password_auto_generate_rsa_keys | ON | + +----------------------------------------------+-------+ + # if the value of "caching_sha2_password_auto_generate_rsa_keys" is ON, set connection mode to "mysql_native_password". + alter user '{user}'@'{host}' identified with mysql_native_password by {password}; + # check the modified result + mysql> SELECT Host, User, plugin from mysql.user where user={user}; + +-----------+------+-----------------------+ + | Host | User | plugin | + +-----------+------+-----------------------+ + | localhost | root | mysql_native_password | + +-----------+------+-----------------------+ + ``` + Use the following commands to change the data of the table _products_. ``` diff --git a/versioned_docs/version-3.0.x/io-debezium-source.md b/versioned_docs/version-3.0.x/io-debezium-source.md index dbc9ed3090be..5953c8ef15eb 100644 --- a/versioned_docs/version-3.0.x/io-debezium-source.md +++ b/versioned_docs/version-3.0.x/io-debezium-source.md @@ -220,6 +220,25 @@ This example shows how to change the data of a MySQL table using the Pulsar Debe 6. A MySQL client pops out. + Change the connection mode to `mysql_native_password` + ``` + mysql> show variables like "caching_sha2_password_auto_generate_rsa_keys"; + +----------------------------------------------+-------+ + | Variable_name | Value | + +----------------------------------------------+-------+ + | caching_sha2_password_auto_generate_rsa_keys | ON | + +----------------------------------------------+-------+ + # if the value of "caching_sha2_password_auto_generate_rsa_keys" is ON, set connection mode to "mysql_native_password". + alter user '{user}'@'{host}' identified with mysql_native_password by {password}; + # check the modified result + mysql> SELECT Host, User, plugin from mysql.user where user={user}; + +-----------+------+-----------------------+ + | Host | User | plugin | + +-----------+------+-----------------------+ + | localhost | root | mysql_native_password | + +-----------+------+-----------------------+ + ``` + Use the following commands to change the data of the table _products_. ```bash