Home page >> Related Tutorials >>Body

Alibaba Cloud MySQL 8.0 to MySQL 5.6 error details

Author: A little Jack    Time: 2022-07-24 15:02:23    Browse: 938   

The blogger previously purchased Alibaba Cloud's cloud database, which is MySQL 8.0, but his own server is MySQL 5.6. Several errors were found in the import, so please record them today!

The first error: [ERR] 1214 - The used table type doesn't support FULLTEXT indexes. The reason for this error is that the InnoDB used in 8.0 does not support FULLTEXT indexes. It needs to be changed to MyISAM. Solution: Open the exported database file, edit and search InnoDB to replace MyISAM. The first error is fixed.

 Alibaba Cloud MySQL 8.0 to MySQL 5.6 error details

The second error: [ERR] 1273 - Unknown collation: 'utf8mb4_0900_ai_ci', reason: MySQL 5.7 does not use this encoding format, but uses utf8_general_ci. Solution: Open the exported database file, edit and search utf8mb4_0900_ai_ci to replace utf8_general_ci. The second error is fixed.

 Alibaba Cloud MySQL 8.0 to MySQL 5.6 error details

The third error: [ERR] 1253 - COLLECTION 'utf8_general_ci' is not valid for CHARACTER SET 'utf8mb4'. Solution: Open the exported database file, edit and search utf8mb4 to replace utf8. The third error can be repaired.

 Alibaba Cloud MySQL 8.0 to MySQL 5.6 error details

Tips: When some databases are exported, utf-8 is not selected, which causes problems in the post import data coding. At this time, the data table needs to be converted to utf-8 format. The details are shown in the screenshot below:

 Alibaba Cloud MySQL 8.0 to MySQL 5.6 error details

The error is repaired. After the code conversion is completed, the import is successful!

 Alibaba Cloud MySQL 8.0 to MySQL 5.6 error details

The above is the whole process of the blogger's conversion from MYSQL8.0 to MYSQL5.6. There may be more incompatibilities and other problems that I have not contacted. Let's try our best!


Text label: mysql   Alibaba Cloud   Cloud database   data base  
 A little Jack

A little Jack https://lkba.cn

The blogger focuses on Z-Blog website construction, website optimization, computer troubleshooting, reinstallation, optimization, maintenance system, etc., QQ/WX: 2126245521 (please specify the purpose)

Related articles

Previous:

Next:

No comment for this article - Welcome

 Please fill in the verification code

Processed : 0.054 SQL : 14