简体   繁体   English

将数据从MySQL 5.7降级到MySQL 5.1

[英]Downgrade data from MySQL 5.7 to MySQL 5.1

I need to downgrade data from MySQL 5.7 to MySQL 5.1. 我需要将数据从MySQL 5.7降级到MySQL 5.1。 are there any ways to do in simple steps? 有什么简单的步骤可以做吗? (backup and restore )T There is a solution is step by step like downgrade from 5.7 to 5.6, and then to 5.5. (备份和还原)T有一个解决方案是一步一步的,例如从5.7降级到5.6,然后降级到5.5。
The Following link says step by step 以下链接逐步说明

Make sure you're not using features from 5.7, that are not avaliable in 5.1, for example utf8mb4 encoding (needed for emoji characters) 确保您没有使用5.7中的功能,这些功能在5.1中不可用,例如utf8mb4编码(表情符号字符需要)

Then most safe option is to mysql_dump all databases via mysqldump, except for mysql (actually you need mysql.user table, but it's safer to recreate, other settings tables may and most probably will not fit) 然后,最安全的选择是通过mysqldump,除mysql之外,通过mysqldump将所有数据库都mysql_dump (实际上,您需要mysql.user表,但是重新创建是更安全的,其他设置表可能并且很可能不适合)

Try restoring on staging server first, to see if restored db works the way you expect it to 尝试首先在登台服务器上还原,以查看还原的数据库是否按照您期望的方式工作

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM