mariadb collat​​e错误禁用mysqldump

时间:2017-11-22 14:10:59

标签: mariadb collation

我想做一个mysqldump但是得到像

这样的错误

mysqldump:得到错误:1273:“使用LOCK TABLES时”表'yoast_seo_links'定义中的“未知校对'#246'

当我登录Mariadb并尝试时  从yoast_seo_links中选择*; ERROR 1273(HY000):表'yoast_seo_links'定义中的未知归类'#246'

如何转储数据? 我已经经历了很多论坛,但找不到解决方案。

1 个答案:

答案 0 :(得分:0)

   ID plantfam     lepsp needsmorpho
1   1        1 A_morpho1         yes
2   2        1 A_morpho1         yes
3   3        2 A_morpho2         yes
4   4        2 A_morpho2         yes
5   5        1         B          no
6   6        1         B          no
7   7        1 C_morpho1         yes
8   8        1 C_morpho1         yes
9   9        2 C_morpho2         yes
10 10        2 C_morpho2         yes
11 11        3 C_morpho3         yes
12 12        3 C_morpho3         yes

mysql> SHOW COLLATION LIKE 'utf8mb4%'; +------------------------+---------+-----+---------+----------+---------+ | Collation | Charset | Id | Default | Compiled | Sortlen | +------------------------+---------+-----+---------+----------+---------+ | utf8mb4_general_ci | utf8mb4 | 45 | Yes | Yes | 1 | | utf8mb4_bin | utf8mb4 | 46 | | Yes | 1 | | utf8mb4_unicode_ci | utf8mb4 | 224 | | Yes | 8 | | utf8mb4_icelandic_ci | utf8mb4 | 225 | | Yes | 8 | | utf8mb4_latvian_ci | utf8mb4 | 226 | | Yes | 8 | | utf8mb4_romanian_ci | utf8mb4 | 227 | | Yes | 8 | | utf8mb4_slovenian_ci | utf8mb4 | 228 | | Yes | 8 | | utf8mb4_polish_ci | utf8mb4 | 229 | | Yes | 8 | | utf8mb4_estonian_ci | utf8mb4 | 230 | | Yes | 8 | | utf8mb4_spanish_ci | utf8mb4 | 231 | | Yes | 8 | | utf8mb4_swedish_ci | utf8mb4 | 232 | | Yes | 8 | | utf8mb4_turkish_ci | utf8mb4 | 233 | | Yes | 8 | | utf8mb4_czech_ci | utf8mb4 | 234 | | Yes | 8 | | utf8mb4_danish_ci | utf8mb4 | 235 | | Yes | 8 | | utf8mb4_lithuanian_ci | utf8mb4 | 236 | | Yes | 8 | | utf8mb4_slovak_ci | utf8mb4 | 237 | | Yes | 8 | | utf8mb4_spanish2_ci | utf8mb4 | 238 | | Yes | 8 | | utf8mb4_roman_ci | utf8mb4 | 239 | | Yes | 8 | | utf8mb4_persian_ci | utf8mb4 | 240 | | Yes | 8 | | utf8mb4_esperanto_ci | utf8mb4 | 241 | | Yes | 8 | | utf8mb4_hungarian_ci | utf8mb4 | 242 | | Yes | 8 | | utf8mb4_sinhala_ci | utf8mb4 | 243 | | Yes | 8 | | utf8mb4_german2_ci | utf8mb4 | 244 | | Yes | 8 | | utf8mb4_croatian_ci | utf8mb4 | 245 | | Yes | 8 | | utf8mb4_unicode_520_ci | utf8mb4 | 246 | | Yes | 8 | | utf8mb4_vietnamese_ci | utf8mb4 | 247 | | Yes | 8 | +------------------------+---------+-----+---------+----------+---------+ 26 rows in set (0.00 sec) 是#246;它是在MySQL 5.6中引入的。因此,它可能已经进入MariaDB 10.0,但我不确定。

您在执行utf8mb4_unicode_520_ci时是否在混合版本?或者也许在负载期间?请说明您转储的版本,mysqldump的版本以及您要加载的版本。