You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/mysql-binlog.md
+16Lines changed: 16 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -219,6 +219,22 @@ Provide `--tls-mode` to encrypt the replication connection when the server is re
219
219
-`--tls-mode required` — require TLS; fail if unavailable.
220
220
-`--tls-ca <PATH>` / `--tls-cert <PATH>` / `--tls-key <PATH>` — verify the server and/or present a client certificate.
221
221
222
+
### Authentication plugins
223
+
224
+
MySQL 8 defaults to `caching_sha2_password`. surreal-sync supports the stages of that plugin (and the older `mysql_native_password` plugin) as follows:
225
+
226
+
| Path | Meaning | surreal-sync |
227
+
|------|---------|--------------|
228
+
| Fast auth (`0x03`) | Server already has the password hash in cache | Supported |
229
+
| Full auth + TLS (`0x04`) | Cache miss; send password in clear over TLS | Supported |
230
+
| Full auth + RSA (`0x04`, no TLS) | Cache miss; encrypt password with the server RSA key | Supported |
|`sha256_password`| Different legacy plugin | Not supported |
233
+
234
+
With `--tls-mode disabled` (the default), a cache miss uses RSA public-key encryption so the password is not sent in cleartext. Prefer `--tls-mode required` (with a CA) on untrusted networks so the whole replication session is encrypted, not only the password exchange.
235
+
236
+
You may still create a replication user with `IDENTIFIED WITH mysql_native_password` for compatibility with older clients; it is optional for surreal-sync.
237
+
222
238
### Binlog compression
223
239
224
240
surreal-sync transparently decodes MySQL 8's compressed transaction payloads (`TRANSACTION_PAYLOAD`, zstd). If you use per-column compression or a compression scheme surreal-sync does not yet decode, it fails with a clear error rather than importing corrupt data; disable that feature or open an issue:
0 commit comments