Skip to content

Commit

Permalink
[fix] [doc] Added solutions for debezium-source-mysql connection errors
Browse files Browse the repository at this point in the history
  • Loading branch information
poorbarcode committed Jul 20, 2023
1 parent e4fffca commit 4760d40
Show file tree
Hide file tree
Showing 40 changed files with 761 additions and 1 deletion.
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`
```
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`
```
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

0 comments on commit 4760d40

Please sign in to comment.