Mysql version is compatible with low-One solution from the higher

Reference Links: https://blog.csdn.net/yinzitun7947/article/details/89917611

The high data mysql database version introduced in the lower version mysql

(1) Problem: navicate11 run xxx.sql file appears Unknown collation: 'utf8mb4_0900_ai_ci'?

Error:

[ERR] 1273 - Unknown collation: 'utf8mb4_0900_ai_ci'

The reason given:

Generate a dump file database version 8.0, the file you want to import sql database version 5.6, because it is a high-low version version of into, causing 1273 error

Solution:
Open the sql file, all files are
utf8mb4_0900_ai_cireplaced with a utf8_general_ci
utf8mb4replacement for the utf8
run sql file again after save, run successfully

(2) conversion using navicat

1. Open navicat for mysql, select the database you want to export, then right 

Write pictures described here

2. Set the property to select the corresponding mysql version, then start 

Write pictures described here

to sum up

There will be compatibility issues between the high and low version version of mysql mysql, believe it may result in garbled or incorrect. "Unknown collation: 'utf8mb4_unicode_ci" error problem

Published 100 original articles · won praise 47 · views 210 000 +

Guess you like

Origin blog.csdn.net/sl1990129/article/details/103386597