diff --git a/docs/io-cdc-debezium.md b/docs/io-cdc-debezium.md index a905bdf2138b..8821e7c7161c 100644 --- a/docs/io-cdc-debezium.md +++ b/docs/io-cdc-debezium.md @@ -170,6 +170,35 @@ 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, ensure the plugin of mysql.user is "mysql_native_password". + mysql> SELECT Host, User, plugin from mysql.user where user={user}; + +-----------+------+-----------------------+ + | Host | User | plugin | + +-----------+------+-----------------------+ + | localhost | root | caching_sha2_password | + +-----------+------+-----------------------+ + + # If the plugin of mysql.user is is "caching_sha2_password", set it to "mysql_native_password". + alter user '{user}'@'{host}' identified with mysql_native_password by {password}; + + # Check the plugin of mysql.user. + 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..8cd60e6d7e70 100644 --- a/docs/io-debezium-source.md +++ b/docs/io-debezium-source.md @@ -220,6 +220,35 @@ 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, ensure the plugin of mysql.user is "mysql_native_password". + mysql> SELECT Host, User, plugin from mysql.user where user={user}; + +-----------+------+-----------------------+ + | Host | User | plugin | + +-----------+------+-----------------------+ + | localhost | root | caching_sha2_password | + +-----------+------+-----------------------+ + + # If the plugin of mysql.user is is "caching_sha2_password", set it to "mysql_native_password". + alter user '{user}'@'{host}' identified with mysql_native_password by {password}; + + # Check the plugin of mysql.user. + 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..4eb8666af4d1 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,35 @@ 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, ensure the plugin of mysql.user is "mysql_native_password". + mysql> SELECT Host, User, plugin from mysql.user where user={user}; + +-----------+------+-----------------------+ + | Host | User | plugin | + +-----------+------+-----------------------+ + | localhost | root | caching_sha2_password | + +-----------+------+-----------------------+ + + # If the plugin of mysql.user is is "caching_sha2_password", set it to "mysql_native_password". + alter user '{user}'@'{host}' identified with mysql_native_password by {password}; + + # Check the plugin of mysql.user. + 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..784000849ba0 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,35 @@ 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, ensure the plugin of mysql.user is "mysql_native_password". + mysql> SELECT Host, User, plugin from mysql.user where user={user}; + +-----------+------+-----------------------+ + | Host | User | plugin | + +-----------+------+-----------------------+ + | localhost | root | caching_sha2_password | + +-----------+------+-----------------------+ + + # If the plugin of mysql.user is is "caching_sha2_password", set it to "mysql_native_password". + alter user '{user}'@'{host}' identified with mysql_native_password by {password}; + + # Check the plugin of mysql.user. + 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..b5e1ff3cbbae 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,35 @@ 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, ensure the plugin of mysql.user is "mysql_native_password". + mysql> SELECT Host, User, plugin from mysql.user where user={user}; + +-----------+------+-----------------------+ + | Host | User | plugin | + +-----------+------+-----------------------+ + | localhost | root | caching_sha2_password | + +-----------+------+-----------------------+ + + # If the plugin of mysql.user is is "caching_sha2_password", set it to "mysql_native_password". + alter user '{user}'@'{host}' identified with mysql_native_password by {password}; + + # Check the plugin of mysql.user. + 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..bc40851f6966 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,35 @@ 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, ensure the plugin of mysql.user is "mysql_native_password". + mysql> SELECT Host, User, plugin from mysql.user where user={user}; + +-----------+------+-----------------------+ + | Host | User | plugin | + +-----------+------+-----------------------+ + | localhost | root | caching_sha2_password | + +-----------+------+-----------------------+ + + # If the plugin of mysql.user is is "caching_sha2_password", set it to "mysql_native_password". + alter user '{user}'@'{host}' identified with mysql_native_password by {password}; + + # Check the plugin of mysql.user. + 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..5754c6c05457 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,35 @@ 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, ensure the plugin of mysql.user is "mysql_native_password". + mysql> SELECT Host, User, plugin from mysql.user where user={user}; + +-----------+------+-----------------------+ + | Host | User | plugin | + +-----------+------+-----------------------+ + | localhost | root | caching_sha2_password | + +-----------+------+-----------------------+ + + # If the plugin of mysql.user is is "caching_sha2_password", set it to "mysql_native_password". + alter user '{user}'@'{host}' identified with mysql_native_password by {password}; + + # Check the plugin of mysql.user. + 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..8cf22504e3c6 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,35 @@ 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, ensure the plugin of mysql.user is "mysql_native_password". + mysql> SELECT Host, User, plugin from mysql.user where user={user}; + +-----------+------+-----------------------+ + | Host | User | plugin | + +-----------+------+-----------------------+ + | localhost | root | caching_sha2_password | + +-----------+------+-----------------------+ + + # If the plugin of mysql.user is is "caching_sha2_password", set it to "mysql_native_password". + alter user '{user}'@'{host}' identified with mysql_native_password by {password}; + + # Check the plugin of mysql.user. + 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 +334,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..5754c6c05457 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,35 @@ 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, ensure the plugin of mysql.user is "mysql_native_password". + mysql> SELECT Host, User, plugin from mysql.user where user={user}; + +-----------+------+-----------------------+ + | Host | User | plugin | + +-----------+------+-----------------------+ + | localhost | root | caching_sha2_password | + +-----------+------+-----------------------+ + + # If the plugin of mysql.user is is "caching_sha2_password", set it to "mysql_native_password". + alter user '{user}'@'{host}' identified with mysql_native_password by {password}; + + # Check the plugin of mysql.user. + 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..8d4b79e5ea34 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,35 @@ 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, ensure the plugin of mysql.user is "mysql_native_password". + mysql> SELECT Host, User, plugin from mysql.user where user={user}; + +-----------+------+-----------------------+ + | Host | User | plugin | + +-----------+------+-----------------------+ + | localhost | root | caching_sha2_password | + +-----------+------+-----------------------+ + + # If the plugin of mysql.user is is "caching_sha2_password", set it to "mysql_native_password". + alter user '{user}'@'{host}' identified with mysql_native_password by {password}; + + # Check the plugin of mysql.user. + 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..5754c6c05457 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,35 @@ 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, ensure the plugin of mysql.user is "mysql_native_password". + mysql> SELECT Host, User, plugin from mysql.user where user={user}; + +-----------+------+-----------------------+ + | Host | User | plugin | + +-----------+------+-----------------------+ + | localhost | root | caching_sha2_password | + +-----------+------+-----------------------+ + + # If the plugin of mysql.user is is "caching_sha2_password", set it to "mysql_native_password". + alter user '{user}'@'{host}' identified with mysql_native_password by {password}; + + # Check the plugin of mysql.user. + 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..8d4b79e5ea34 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,35 @@ 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, ensure the plugin of mysql.user is "mysql_native_password". + mysql> SELECT Host, User, plugin from mysql.user where user={user}; + +-----------+------+-----------------------+ + | Host | User | plugin | + +-----------+------+-----------------------+ + | localhost | root | caching_sha2_password | + +-----------+------+-----------------------+ + + # If the plugin of mysql.user is is "caching_sha2_password", set it to "mysql_native_password". + alter user '{user}'@'{host}' identified with mysql_native_password by {password}; + + # Check the plugin of mysql.user. + 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..39666bf5738a 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,35 @@ 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, ensure the plugin of mysql.user is "mysql_native_password". + mysql> SELECT Host, User, plugin from mysql.user where user={user}; + +-----------+------+-----------------------+ + | Host | User | plugin | + +-----------+------+-----------------------+ + | localhost | root | caching_sha2_password | + +-----------+------+-----------------------+ + + # If the plugin of mysql.user is is "caching_sha2_password", set it to "mysql_native_password". + alter user '{user}'@'{host}' identified with mysql_native_password by {password}; + + # Check the plugin of mysql.user. + 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..5d695fb1bf5d 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,35 @@ 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, ensure the plugin of mysql.user is "mysql_native_password". + mysql> SELECT Host, User, plugin from mysql.user where user={user}; + +-----------+------+-----------------------+ + | Host | User | plugin | + +-----------+------+-----------------------+ + | localhost | root | caching_sha2_password | + +-----------+------+-----------------------+ + + # If the plugin of mysql.user is is "caching_sha2_password", set it to "mysql_native_password". + alter user '{user}'@'{host}' identified with mysql_native_password by {password}; + + # Check the plugin of mysql.user. + 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..39666bf5738a 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,35 @@ 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, ensure the plugin of mysql.user is "mysql_native_password". + mysql> SELECT Host, User, plugin from mysql.user where user={user}; + +-----------+------+-----------------------+ + | Host | User | plugin | + +-----------+------+-----------------------+ + | localhost | root | caching_sha2_password | + +-----------+------+-----------------------+ + + # If the plugin of mysql.user is is "caching_sha2_password", set it to "mysql_native_password". + alter user '{user}'@'{host}' identified with mysql_native_password by {password}; + + # Check the plugin of mysql.user. + 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..5d695fb1bf5d 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,35 @@ 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, ensure the plugin of mysql.user is "mysql_native_password". + mysql> SELECT Host, User, plugin from mysql.user where user={user}; + +-----------+------+-----------------------+ + | Host | User | plugin | + +-----------+------+-----------------------+ + | localhost | root | caching_sha2_password | + +-----------+------+-----------------------+ + + # If the plugin of mysql.user is is "caching_sha2_password", set it to "mysql_native_password". + alter user '{user}'@'{host}' identified with mysql_native_password by {password}; + + # Check the plugin of mysql.user. + 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..d92a1981daf7 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,35 @@ 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, ensure the plugin of mysql.user is "mysql_native_password". + mysql> SELECT Host, User, plugin from mysql.user where user={user}; + +-----------+------+-----------------------+ + | Host | User | plugin | + +-----------+------+-----------------------+ + | localhost | root | caching_sha2_password | + +-----------+------+-----------------------+ + + # If the plugin of mysql.user is is "caching_sha2_password", set it to "mysql_native_password". + alter user '{user}'@'{host}' identified with mysql_native_password by {password}; + + # Check the plugin of mysql.user. + 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..5d695fb1bf5d 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,35 @@ 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, ensure the plugin of mysql.user is "mysql_native_password". + mysql> SELECT Host, User, plugin from mysql.user where user={user}; + +-----------+------+-----------------------+ + | Host | User | plugin | + +-----------+------+-----------------------+ + | localhost | root | caching_sha2_password | + +-----------+------+-----------------------+ + + # If the plugin of mysql.user is is "caching_sha2_password", set it to "mysql_native_password". + alter user '{user}'@'{host}' identified with mysql_native_password by {password}; + + # Check the plugin of mysql.user. + 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..39666bf5738a 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,35 @@ 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, ensure the plugin of mysql.user is "mysql_native_password". + mysql> SELECT Host, User, plugin from mysql.user where user={user}; + +-----------+------+-----------------------+ + | Host | User | plugin | + +-----------+------+-----------------------+ + | localhost | root | caching_sha2_password | + +-----------+------+-----------------------+ + + # If the plugin of mysql.user is is "caching_sha2_password", set it to "mysql_native_password". + alter user '{user}'@'{host}' identified with mysql_native_password by {password}; + + # Check the plugin of mysql.user. + 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..5d695fb1bf5d 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,35 @@ 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, ensure the plugin of mysql.user is "mysql_native_password". + mysql> SELECT Host, User, plugin from mysql.user where user={user}; + +-----------+------+-----------------------+ + | Host | User | plugin | + +-----------+------+-----------------------+ + | localhost | root | caching_sha2_password | + +-----------+------+-----------------------+ + + # If the plugin of mysql.user is is "caching_sha2_password", set it to "mysql_native_password". + alter user '{user}'@'{host}' identified with mysql_native_password by {password}; + + # Check the plugin of mysql.user. + 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..39666bf5738a 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,35 @@ 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, ensure the plugin of mysql.user is "mysql_native_password". + mysql> SELECT Host, User, plugin from mysql.user where user={user}; + +-----------+------+-----------------------+ + | Host | User | plugin | + +-----------+------+-----------------------+ + | localhost | root | caching_sha2_password | + +-----------+------+-----------------------+ + + # If the plugin of mysql.user is is "caching_sha2_password", set it to "mysql_native_password". + alter user '{user}'@'{host}' identified with mysql_native_password by {password}; + + # Check the plugin of mysql.user. + 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..5d695fb1bf5d 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,35 @@ 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, ensure the plugin of mysql.user is "mysql_native_password". + mysql> SELECT Host, User, plugin from mysql.user where user={user}; + +-----------+------+-----------------------+ + | Host | User | plugin | + +-----------+------+-----------------------+ + | localhost | root | caching_sha2_password | + +-----------+------+-----------------------+ + + # If the plugin of mysql.user is is "caching_sha2_password", set it to "mysql_native_password". + alter user '{user}'@'{host}' identified with mysql_native_password by {password}; + + # Check the plugin of mysql.user. + 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..39666bf5738a 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,35 @@ 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, ensure the plugin of mysql.user is "mysql_native_password". + mysql> SELECT Host, User, plugin from mysql.user where user={user}; + +-----------+------+-----------------------+ + | Host | User | plugin | + +-----------+------+-----------------------+ + | localhost | root | caching_sha2_password | + +-----------+------+-----------------------+ + + # If the plugin of mysql.user is is "caching_sha2_password", set it to "mysql_native_password". + alter user '{user}'@'{host}' identified with mysql_native_password by {password}; + + # Check the plugin of mysql.user. + 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..b019706d20d4 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,35 @@ 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, ensure the plugin of mysql.user is "mysql_native_password". + mysql> SELECT Host, User, plugin from mysql.user where user={user}; + +-----------+------+-----------------------+ + | Host | User | plugin | + +-----------+------+-----------------------+ + | localhost | root | caching_sha2_password | + +-----------+------+-----------------------+ + + # If the plugin of mysql.user is is "caching_sha2_password", set it to "mysql_native_password". + alter user '{user}'@'{host}' identified with mysql_native_password by {password}; + + # Check the plugin of mysql.user. + 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..39666bf5738a 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,35 @@ 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, ensure the plugin of mysql.user is "mysql_native_password". + mysql> SELECT Host, User, plugin from mysql.user where user={user}; + +-----------+------+-----------------------+ + | Host | User | plugin | + +-----------+------+-----------------------+ + | localhost | root | caching_sha2_password | + +-----------+------+-----------------------+ + + # If the plugin of mysql.user is is "caching_sha2_password", set it to "mysql_native_password". + alter user '{user}'@'{host}' identified with mysql_native_password by {password}; + + # Check the plugin of mysql.user. + 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..b019706d20d4 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,35 @@ 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, ensure the plugin of mysql.user is "mysql_native_password". + mysql> SELECT Host, User, plugin from mysql.user where user={user}; + +-----------+------+-----------------------+ + | Host | User | plugin | + +-----------+------+-----------------------+ + | localhost | root | caching_sha2_password | + +-----------+------+-----------------------+ + + # If the plugin of mysql.user is is "caching_sha2_password", set it to "mysql_native_password". + alter user '{user}'@'{host}' identified with mysql_native_password by {password}; + + # Check the plugin of mysql.user. + 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..39666bf5738a 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,35 @@ 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, ensure the plugin of mysql.user is "mysql_native_password". + mysql> SELECT Host, User, plugin from mysql.user where user={user}; + +-----------+------+-----------------------+ + | Host | User | plugin | + +-----------+------+-----------------------+ + | localhost | root | caching_sha2_password | + +-----------+------+-----------------------+ + + # If the plugin of mysql.user is is "caching_sha2_password", set it to "mysql_native_password". + alter user '{user}'@'{host}' identified with mysql_native_password by {password}; + + # Check the plugin of mysql.user. + 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..b019706d20d4 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,35 @@ 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, ensure the plugin of mysql.user is "mysql_native_password". + mysql> SELECT Host, User, plugin from mysql.user where user={user}; + +-----------+------+-----------------------+ + | Host | User | plugin | + +-----------+------+-----------------------+ + | localhost | root | caching_sha2_password | + +-----------+------+-----------------------+ + + # If the plugin of mysql.user is is "caching_sha2_password", set it to "mysql_native_password". + alter user '{user}'@'{host}' identified with mysql_native_password by {password}; + + # Check the plugin of mysql.user. + 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..39666bf5738a 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,35 @@ 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, ensure the plugin of mysql.user is "mysql_native_password". + mysql> SELECT Host, User, plugin from mysql.user where user={user}; + +-----------+------+-----------------------+ + | Host | User | plugin | + +-----------+------+-----------------------+ + | localhost | root | caching_sha2_password | + +-----------+------+-----------------------+ + + # If the plugin of mysql.user is is "caching_sha2_password", set it to "mysql_native_password". + alter user '{user}'@'{host}' identified with mysql_native_password by {password}; + + # Check the plugin of mysql.user. + 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..b019706d20d4 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,35 @@ 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, ensure the plugin of mysql.user is "mysql_native_password". + mysql> SELECT Host, User, plugin from mysql.user where user={user}; + +-----------+------+-----------------------+ + | Host | User | plugin | + +-----------+------+-----------------------+ + | localhost | root | caching_sha2_password | + +-----------+------+-----------------------+ + + # If the plugin of mysql.user is is "caching_sha2_password", set it to "mysql_native_password". + alter user '{user}'@'{host}' identified with mysql_native_password by {password}; + + # Check the plugin of mysql.user. + 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..39666bf5738a 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,35 @@ 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, ensure the plugin of mysql.user is "mysql_native_password". + mysql> SELECT Host, User, plugin from mysql.user where user={user}; + +-----------+------+-----------------------+ + | Host | User | plugin | + +-----------+------+-----------------------+ + | localhost | root | caching_sha2_password | + +-----------+------+-----------------------+ + + # If the plugin of mysql.user is is "caching_sha2_password", set it to "mysql_native_password". + alter user '{user}'@'{host}' identified with mysql_native_password by {password}; + + # Check the plugin of mysql.user. + 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..b019706d20d4 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,35 @@ 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, ensure the plugin of mysql.user is "mysql_native_password". + mysql> SELECT Host, User, plugin from mysql.user where user={user}; + +-----------+------+-----------------------+ + | Host | User | plugin | + +-----------+------+-----------------------+ + | localhost | root | caching_sha2_password | + +-----------+------+-----------------------+ + + # If the plugin of mysql.user is is "caching_sha2_password", set it to "mysql_native_password". + alter user '{user}'@'{host}' identified with mysql_native_password by {password}; + + # Check the plugin of mysql.user. + 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..39666bf5738a 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,35 @@ 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, ensure the plugin of mysql.user is "mysql_native_password". + mysql> SELECT Host, User, plugin from mysql.user where user={user}; + +-----------+------+-----------------------+ + | Host | User | plugin | + +-----------+------+-----------------------+ + | localhost | root | caching_sha2_password | + +-----------+------+-----------------------+ + + # If the plugin of mysql.user is is "caching_sha2_password", set it to "mysql_native_password". + alter user '{user}'@'{host}' identified with mysql_native_password by {password}; + + # Check the plugin of mysql.user. + 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..b019706d20d4 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,35 @@ 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, ensure the plugin of mysql.user is "mysql_native_password". + mysql> SELECT Host, User, plugin from mysql.user where user={user}; + +-----------+------+-----------------------+ + | Host | User | plugin | + +-----------+------+-----------------------+ + | localhost | root | caching_sha2_password | + +-----------+------+-----------------------+ + + # If the plugin of mysql.user is is "caching_sha2_password", set it to "mysql_native_password". + alter user '{user}'@'{host}' identified with mysql_native_password by {password}; + + # Check the plugin of mysql.user. + 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..58f6ff8aa2b9 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,35 @@ 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, ensure the plugin of mysql.user is "mysql_native_password". + mysql> SELECT Host, User, plugin from mysql.user where user={user}; + +-----------+------+-----------------------+ + | Host | User | plugin | + +-----------+------+-----------------------+ + | localhost | root | caching_sha2_password | + +-----------+------+-----------------------+ + + # If the plugin of mysql.user is is "caching_sha2_password", set it to "mysql_native_password". + alter user '{user}'@'{host}' identified with mysql_native_password by {password}; + + # Check the plugin of mysql.user. + 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..89472b1a630b 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,35 @@ 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, ensure the plugin of mysql.user is "mysql_native_password". + mysql> SELECT Host, User, plugin from mysql.user where user={user}; + +-----------+------+-----------------------+ + | Host | User | plugin | + +-----------+------+-----------------------+ + | localhost | root | caching_sha2_password | + +-----------+------+-----------------------+ + + # If the plugin of mysql.user is is "caching_sha2_password", set it to "mysql_native_password". + alter user '{user}'@'{host}' identified with mysql_native_password by {password}; + + # Check the plugin of mysql.user. + 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..58f6ff8aa2b9 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,35 @@ 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, ensure the plugin of mysql.user is "mysql_native_password". + mysql> SELECT Host, User, plugin from mysql.user where user={user}; + +-----------+------+-----------------------+ + | Host | User | plugin | + +-----------+------+-----------------------+ + | localhost | root | caching_sha2_password | + +-----------+------+-----------------------+ + + # If the plugin of mysql.user is is "caching_sha2_password", set it to "mysql_native_password". + alter user '{user}'@'{host}' identified with mysql_native_password by {password}; + + # Check the plugin of mysql.user. + 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..cfb0f549ecda 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,35 @@ 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, ensure the plugin of mysql.user is "mysql_native_password". + mysql> SELECT Host, User, plugin from mysql.user where user={user}; + +-----------+------+-----------------------+ + | Host | User | plugin | + +-----------+------+-----------------------+ + | localhost | root | caching_sha2_password | + +-----------+------+-----------------------+ + + # If the plugin of mysql.user is is "caching_sha2_password", set it to "mysql_native_password". + alter user '{user}'@'{host}' identified with mysql_native_password by {password}; + + # Check the plugin of mysql.user. + 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..8821e7c7161c 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,35 @@ 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, ensure the plugin of mysql.user is "mysql_native_password". + mysql> SELECT Host, User, plugin from mysql.user where user={user}; + +-----------+------+-----------------------+ + | Host | User | plugin | + +-----------+------+-----------------------+ + | localhost | root | caching_sha2_password | + +-----------+------+-----------------------+ + + # If the plugin of mysql.user is is "caching_sha2_password", set it to "mysql_native_password". + alter user '{user}'@'{host}' identified with mysql_native_password by {password}; + + # Check the plugin of mysql.user. + 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..8cd60e6d7e70 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,35 @@ 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, ensure the plugin of mysql.user is "mysql_native_password". + mysql> SELECT Host, User, plugin from mysql.user where user={user}; + +-----------+------+-----------------------+ + | Host | User | plugin | + +-----------+------+-----------------------+ + | localhost | root | caching_sha2_password | + +-----------+------+-----------------------+ + + # If the plugin of mysql.user is is "caching_sha2_password", set it to "mysql_native_password". + alter user '{user}'@'{host}' identified with mysql_native_password by {password}; + + # Check the plugin of mysql.user. + 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