Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[fix] [doc] Added solutions for debezium-source-mysql connection errors #649

Merged
merged 6 commits into from
Jul 31, 2023
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
19 changes: 19 additions & 0 deletions docs/io-cdc-debezium.md
Original file line number Diff line number Diff line change
Expand Up @@ -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`
poorbarcode marked this conversation as resolved.
Show resolved Hide resolved
```
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_.

```
Expand Down
19 changes: 19 additions & 0 deletions docs/io-debezium-source.md
Original file line number Diff line number Diff line change
Expand Up @@ -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`
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
Change the connection mode to `mysql_native_password`
Change the connection mode to `mysql_native_password`.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Done

```
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
Expand Down
19 changes: 19 additions & 0 deletions versioned_docs/version-2.10.x/io-cdc-debezium.md
Original file line number Diff line number Diff line change
Expand Up @@ -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_.

```
Expand Down
19 changes: 19 additions & 0 deletions versioned_docs/version-2.10.x/io-debezium-source.md
Original file line number Diff line number Diff line change
Expand Up @@ -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_.

```
Expand Down
19 changes: 19 additions & 0 deletions versioned_docs/version-2.11.x/io-cdc-debezium.md
Original file line number Diff line number Diff line change
Expand Up @@ -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_.

```
Expand Down
19 changes: 19 additions & 0 deletions versioned_docs/version-2.11.x/io-debezium-source.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
19 changes: 19 additions & 0 deletions versioned_docs/version-2.5.0/io-cdc-debezium.md
Original file line number Diff line number Diff line change
Expand Up @@ -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_.

```
Expand Down
21 changes: 20 additions & 1 deletion versioned_docs/version-2.5.0/io-debezium-source.md
Original file line number Diff line number Diff line change
Expand Up @@ -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_.

```
Expand Down Expand Up @@ -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_.

Expand Down
19 changes: 19 additions & 0 deletions versioned_docs/version-2.5.1/io-cdc-debezium.md
Original file line number Diff line number Diff line change
Expand Up @@ -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_.

```
Expand Down
19 changes: 19 additions & 0 deletions versioned_docs/version-2.5.1/io-debezium-source.md
Original file line number Diff line number Diff line change
Expand Up @@ -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_.

```
Expand Down
19 changes: 19 additions & 0 deletions versioned_docs/version-2.5.2/io-cdc-debezium.md
Original file line number Diff line number Diff line change
Expand Up @@ -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_.

```
Expand Down
19 changes: 19 additions & 0 deletions versioned_docs/version-2.5.2/io-debezium-source.md
Original file line number Diff line number Diff line change
Expand Up @@ -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_.

```
Expand Down
19 changes: 19 additions & 0 deletions versioned_docs/version-2.6.0/io-cdc-debezium.md
Original file line number Diff line number Diff line change
Expand Up @@ -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_.

```
Expand Down
19 changes: 19 additions & 0 deletions versioned_docs/version-2.6.0/io-debezium-source.md
Original file line number Diff line number Diff line change
Expand Up @@ -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_.

```
Expand Down
19 changes: 19 additions & 0 deletions versioned_docs/version-2.6.1/io-cdc-debezium.md
Original file line number Diff line number Diff line change
Expand Up @@ -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_.

```
Expand Down
Loading
Loading