-
Notifications
You must be signed in to change notification settings - Fork 289
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
DM migrates table with incorrect collation #3420
DM migrates table with incorrect collation #3420
Comments
This is how I manually fixed this table. But with more tables and/or a constant stream of new tables this isn't a good workaround.
|
Two small differences do work correctly:
MySQL doesn't show character set and collation in the output of Related items: |
seems this is related to "The default collations in TiDB (binary collations, with the suffix _bin) are different than the default collations in MySQL (typically general collations, with the suffix _general_ci)" https://docs.pingcap.com/tidb/stable/character-set-and-collation so DM should try to explicit set collation. |
What did you do?
On MySQL 5.7.36:
On TiDB 5.2.1:
What did you expect to see?
I would expect the collation for the
c1
column on the target (TiDB) to match the source (MySQL 5.7).What did you see instead?
The default collation for
utf8mb4
.Versions of the cluster
DM version (run
dmctl -V
ordm-worker -V
ordm-master -V
):Upstream MySQL/MariaDB server version:
Downstream TiDB cluster version (execute
SELECT tidb_version();
in a MySQL client):How did you deploy DM: tiup or manually?
manually
Other interesting information (system version, hardware config, etc):
current status of DM cluster (execute
query-status <task-name>
in dmctl)The text was updated successfully, but these errors were encountered: