Skip to content

Commit

Permalink
[fix] [doc] Added solutions for debezium-source-mysql connection erro…
Browse files Browse the repository at this point in the history
…rs (#649)
  • Loading branch information
poorbarcode authored Jul 31, 2023
1 parent 645069e commit a76db75
Show file tree
Hide file tree
Showing 40 changed files with 1,161 additions and 1 deletion.
29 changes: 29 additions & 0 deletions docs/io-cdc-debezium.md
Original file line number Diff line number Diff line change
Expand Up @@ -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_.

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

```
Expand Down
29 changes: 29 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,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_.

```
Expand Down
29 changes: 29 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,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_.

```
Expand Down
29 changes: 29 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,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
Expand Down
29 changes: 29 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,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_.

```
Expand Down
31 changes: 30 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,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_.

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

Expand Down
29 changes: 29 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,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_.

```
Expand Down
29 changes: 29 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,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_.

```
Expand Down
Loading

0 comments on commit a76db75

Please sign in to comment.