Mysql

是否可以在 RHEL 5 上解除安裝 My SQL-5.6 並安裝 MySQL-5.1

  • July 22, 2014

我在 RHEL5 上安裝了 MySQL-5.6.x 社區版。它執行良好。因為,它是我的測試伺服器。為了找出執行時間的差異,我不得不再次安裝 MySQL-5.1 社區版。所以,我決定先解除安裝 My​​SQL-5.6。為此,我按照以下步驟操作:

1. uninstall MySQL server and client
# sudo yum erase mysql
2. Uninstall mysql libraries
# sudo yum remove mysql-libs
3. clean db cache
# sudo yum clean dbcache
4. find each and every instance of MySQL
# sudo find / -name mysql*;
5. remove each and every instance of MySQL and Even libmysqlclient.so too.
# sudo rm -r /directory path
6. install shared library
# sudo rpm -ivh /u000/mysql_installer/MySQL-shared-community-5.1.73-1.rhel5.x86_64.rpm
Result: successful 100%
6. install shared compat if you face any issue  
# sudo rpm -ivh /u000/mysql_installer/MySQL-shared-compat-5.1.73-1.rhel5.x86_64.rpm
Result: successful 100%
7. install mysql server
# sudo rpm -ivh /u000/mysql_installer/MySQL-server-community-5.1.73-1.rhel5.x86_64.rpm

但是,我遇到了很多衝突錯誤,如下所示:

    file /etc/init.d/mysql from install of MySQL-server-community-5.1.73-1.rhel5.x86_64 conflicts with file from package MySQL-server-5.6.19-1.rhel5.x86_64
file /etc/logrotate.d/mysql from install of MySQL-server-community-5.1.73-1.rhel5.x86_64 conflicts with file from package MySQL-server-5.6.19-1.rhel5.x86_64
       file /usr/bin/innochecksum from install of MySQL-server-community-5.1.73-1.rhel5.x86_64 conflicts with file from package MySQL-server-5.6.19-1.rhel5.x86_64
       file /usr/bin/my_print_defaults from install of MySQL-server-community-5.1.73-1.rhel5.x86_64 conflicts with file from package MySQL-server-5.6.19-1.rhel5.x86_64
       file /usr/bin/myisam_ftdump from install of MySQL-server-community-5.1.73-1.rhel5.x86_64 conflicts with file from package MySQL-server-5.6.19-1.rhel5.x86_64
       file /usr/bin/myisamchk from install of MySQL-server-community-5.1.73-1.rhel5.x86_64 conflicts with file from package MySQL-server-5.6.19-1.rhel5.x86_64
       file /usr/bin/myisamlog from install of MySQL-server-community-5.1.73-1.rhel5.x86_64 conflicts with file from package MySQL-server-5.6.19-1.rhel5.x86_64
       file /usr/bin/myisampack from install of MySQL-server-community-5.1.73-1.rhel5.x86_64 conflicts with file from package MySQL-server-5.6.19-1.rhel5.x86_64
       file /usr/bin/mysql_convert_table_format from install of MySQL-server-community-5.1.73-1.rhel5.x86_64 conflicts with file from package MySQL-server-5.6.19-1.rhel5.x86_64
       file /usr/bin/mysql_fix_extensions from install of MySQL-server-community-5.1.73-1.rhel5.x86_64 conflicts with file from package MySQL-server-5.6.19-1.rhel5.x86_64
       file /usr/bin/mysql_install_db from install of MySQL-server-community-5.1.73-1.rhel5.x86_64 conflicts with file from package MySQL-server-5.6.19-1.rhel5.x86_64
       file /usr/bin/mysql_secure_installation from install of MySQL-server-community-5.1.73-1.rhel5.x86_64 conflicts with file from package MySQL-server-5.6.19-1.rhel5.x86_64
       file /usr/bin/mysql_setpermission from install of MySQL-server-community-5.1.73-1.rhel5.x86_64 conflicts with file from package MySQL-server-5.6.19-1.rhel5.x86_64
       file /usr/bin/mysql_tzinfo_to_sql from install of MySQL-server-community-5.1.73-1.rhel5.x86_64 conflicts with file from package MySQL-server-5.6.19-1.rhel5.x86_64
       file /usr/bin/mysql_upgrade from install of MySQL-server-community-5.1.73-1.rhel5.x86_64 conflicts with file from package MySQL-server-5.6.19-1.rhel5.x86_64
       file /usr/bin/mysql_zap from install of MySQL-server-community-5.1.73-1.rhel5.x86_64 conflicts with file from package MySQL-server-5.6.19-1.rhel5.x86_64
       file /usr/bin/mysqlbug from install of MySQL-server-community-5.1.73-1.rhel5.x86_64 conflicts with file from package MySQL-server-5.6.19-1.rhel5.x86_64
       file /usr/bin/mysqld_multi from install of MySQL-server-community-5.1.73-1.rhel5.x86_64 conflicts with file from package MySQL-server-5.6.19-1.rhel5.x86_64
       file /usr/bin/mysqld_safe from install of MySQL-server-community-5.1.73-1.rhel5.x86_64 conflicts with file from package MySQL-server-5.6.19-1.rhel5.x86_64
       file /usr/bin/mysqldumpslow from install of MySQL-server-community-5.1.73-1.rhel5.x86_64 conflicts with file from package MySQL-server-5.6.19-1.rhel5.x86_64
       file /usr/bin/mysqlhotcopy from install of MySQL-server-community-5.1.73-1.rhel5.x86_64 conflicts with file from package MySQL-server-5.6.19-1.rhel5.x86_64
       file /usr/bin/mysqltest from install of MySQL-server-community-5.1.73-1.rhel5.x86_64 conflicts with file from package MySQL-server-5.6.19-1.rhel5.x86_64
       file /usr/bin/perror from install of MySQL-server-community-5.1.73-1.rhel5.x86_64 conflicts with file from package MySQL-server-5.6.19-1.rhel5.x86_64
       file /usr/bin/replace from install of MySQL-server-community-5.1.73-1.rhel5.x86_64 conflicts with file from package MySQL-server-5.6.19-1.rhel5.x86_64
       file /usr/bin/resolve_stack_dump from install of MySQL-server-community-5.1.73-1.rhel5.x86_64 conflicts with file from package MySQL-server-5.6.19-1.rhel5.x86_64
       file /usr/bin/resolveip from install of MySQL-server-community-5.1.73-1.rhel5.x86_64 conflicts with file from package MySQL-server-5.6.19-1.rhel5.x86_64
       file /usr/sbin/mysqld from install of MySQL-server-community-5.1.73-1.rhel5.x86_64 conflicts with file from package MySQL-server-5.6.19-1.rhel5.x86_64
       file /usr/sbin/mysqld-debug from install of MySQL-server-community-5.1.73-1.rhel5.x86_64 conflicts with file from package MySQL-server-5.6.19-1.rhel5.x86_64
       file /usr/share/man/man1/innochecksum.1.gz from install of MySQL-server-community-5.1.73-1.rhel5.x86_64 conflicts with file from package MySQL-server-5.6.19-1.rhel5.x86_64
       file /usr/share/man/man1/my_print_defaults.1.gz from install of MySQL-server-community-5.1.73-1.rhel5.x86_64 conflicts with file from package MySQL-server-5.6.19-1.rhel5.x86_64
       file /usr/share/man/man1/myisam_ftdump.1.gz from install of MySQL-server-community-5.1.73-1.rhel5.x86_64 conflicts with file from package MySQL-server-5.6.19-1.rhel5.x86_64
       file /usr/share/man/man1/myisamchk.1.gz from install of MySQL-server-community-5.1.73-1.rhel5.x86_64 conflicts with file from package MySQL-server-5.6.19-1.rhel5.x86_64
       file /usr/share/man/man1/myisamlog.1.gz from install of MySQL-server-community-5.1.73-1.rhel5.x86_64 conflicts with file from package MySQL-server-5.6.19-1.rhel5.x86_64
       file /usr/share/man/man1/myisampack.1.gz from install of MySQL-server-community-5.1.73-1.rhel5.x86_64 conflicts with file from package MySQL-server-5.6.19-1.rhel5.x86_64
       file /usr/share/man/man1/mysql.server.1.gz from install of MySQL-server-community-5.1.73-1.rhel5.x86_64 conflicts with file from package MySQL-server-5.6.19-1.rhel5.x86_64
       file /usr/share/man/man1/mysql_convert_table_format.1.gz from install of MySQL-server-community-5.1.73-1.rhel5.x86_64 conflicts with file from package MySQL-server-5.6.19-1.rhel5.x86_64
       file /usr/share/man/man1/mysql_fix_extensions.1.gz from install of MySQL-server-community-5.1.73-1.rhel5.x86_64 conflicts with file from package MySQL-server-5.6.19-1.rhel5.x86_64
       file /usr/share/man/man1/mysql_install_db.1.gz from install of MySQL-server-community-5.1.73-1.rhel5.x86_64 conflicts with file from package MySQL-server-5.6.19-1.rhel5.x86_64
       file /usr/share/man/man1/mysql_secure_installation.1.gz from install of MySQL-server-community-5.1.73-1.rhel5.x86_64 conflicts with file from package MySQL-server-5.6.19-1.rhel5.x86_64
       file /usr/share/man/man1/mysql_setpermission.1.gz from install of MySQL-server-community-5.1.73-1.rhel5.x86_64 conflicts with file from package MySQL-server-5.6.19-1.rhel5.x86_64
       file /usr/share/man/man1/mysql_tzinfo_to_sql.1.gz from install of MySQL-server-community-5.1.73-1.rhel5.x86_64 conflicts with file from package MySQL-server-5.6.19-1.rhel5.x86_64
       file /usr/share/man/man1/mysql_upgrade.1.gz from install of MySQL-server-community-5.1.73-1.rhel5.x86_64 conflicts with file from package MySQL-server-5.6.19-1.rhel5.x86_64
       file /usr/share/man/man1/mysql_zap.1.gz from install of MySQL-server-community-5.1.73-1.rhel5.x86_64 conflicts with file from package MySQL-server-5.6.19-1.rhel5.x86_64
       file /usr/share/man/man1/mysqlbug.1.gz from install of MySQL-server-community-5.1.73-1.rhel5.x86_64 conflicts with file from package MySQL-server-5.6.19-1.rhel5.x86_64
       file /usr/share/man/man1/mysqld_multi.1.gz from install of MySQL-server-community-5.1.73-1.rhel5.x86_64 conflicts with file from package MySQL-server-5.6.19-1.rhel5.x86_64
       file /usr/share/man/man1/mysqld_safe.1.gz from install of MySQL-server-community-5.1.73-1.rhel5.x86_64 conflicts with file from package MySQL-server-5.6.19-1.rhel5.x86_64
       file /usr/share/man/man1/mysqldumpslow.1.gz from install of MySQL-server-community-5.1.73-1.rhel5.x86_64 conflicts with file from package MySQL-server-5.6.19-1.rhel5.x86_64
       file /usr/share/man/man1/mysqlhotcopy.1.gz from install of MySQL-server-community-5.1.73-1.rhel5.x86_64 conflicts with file from package MySQL-server-5.6.19-1.rhel5.x86_64
       file /usr/share/man/man1/mysqltest.1.gz from install of MySQL-server-community-5.1.73-1.rhel5.x86_64 conflicts with file from package MySQL-server-5.6.19-1.rhel5.x86_64
       file /usr/share/man/man1/perror.1.gz from install of MySQL-server-community-5.1.73-1.rhel5.x86_64 conflicts with file from package MySQL-server-5.6.19-1.rhel5.x86_64
       file /usr/share/man/man1/replace.1.gz from install of MySQL-server-community-5.1.73-1.rhel5.x86_64 conflicts with file from package MySQL-server-5.6.19-1.rhel5.x86_64
       file /usr/share/man/man1/resolve_stack_dump.1.gz from install of MySQL-server-community-5.1.73-1.rhel5.x86_64 conflicts with file from package MySQL-server-5.6.19-1.rhel5.x86_64
       file /usr/share/man/man1/resolveip.1.gz from install of MySQL-server-community-5.1.73-1.rhel5.x86_64 conflicts with file from package MySQL-server-5.6.19-1.rhel5.x86_64
       file /usr/share/man/man8/mysqld.8.gz from install of MySQL-server-community-5.1.73-1.rhel5.x86_64 conflicts with file from package MySQL-server-5.6.19-1.rhel5.x86_64
       file /usr/share/mysql/SELinux/RHEL4/mysql.fc from install of MySQL-server-community-5.1.73-1.rhel5.x86_64 conflicts with file from package MySQL-server-5.6.19-1.rhel5.x86_64
       file /usr/share/mysql/SELinux/RHEL4/mysql.te from install of MySQL-server-community-5.1.73-1.rhel5.x86_64 conflicts with file from package MySQL-server-5.6.19-1.rhel5.x86_64
       file /usr/share/mysql/charsets/Index.xml from install of MySQL-server-community-5.1.73-1.rhel5.x86_64 conflicts with file from package MySQL-server-5.6.19-1.rhel5.x86_64
       file /usr/share/mysql/charsets/armscii8.xml from install of MySQL-server-community-5.1.73-1.rhel5.x86_64 conflicts with file from package MySQL-server-5.6.19-1.rhel5.x86_64
       file /usr/share/mysql/charsets/ascii.xml from install of MySQL-server-community-5.1.73-1.rhel5.x86_64 conflicts with file from package MySQL-server-5.6.19-1.rhel5.x86_64
       file /usr/share/mysql/charsets/cp1250.xml from install of MySQL-server-community-5.1.73-1.rhel5.x86_64 conflicts with file from package MySQL-server-5.6.19-1.rhel5.x86_64
       file /usr/share/mysql/charsets/cp1256.xml from install of MySQL-server-community-5.1.73-1.rhel5.x86_64 conflicts with file from package MySQL-server-5.6.19-1.rhel5.x86_64
       file /usr/share/mysql/charsets/cp1257.xml from install of MySQL-server-community-5.1.73-1.rhel5.x86_64 conflicts with file from package MySQL-server-5.6.19-1.rhel5.x86_64
       file /usr/share/mysql/charsets/cp850.xml from install of MySQL-server-community-5.1.73-1.rhel5.x86_64 conflicts with file from package MySQL-server-5.6.19-1.rhel5.x86_64
       file /usr/share/mysql/charsets/cp852.xml from install of MySQL-server-community-5.1.73-1.rhel5.x86_64 conflicts with file from package MySQL-server-5.6.19-1.rhel5.x86_64
       file /usr/share/mysql/charsets/cp866.xml from install of MySQL-server-community-5.1.73-1.rhel5.x86_64 conflicts with file from package MySQL-server-5.6.19-1.rhel5.x86_64
       file /usr/share/mysql/charsets/dec8.xml from install of MySQL-server-community-5.1.73-1.rhel5.x86_64 conflicts with file from package MySQL-server-5.6.19-1.rhel5.x86_64
       file /usr/share/mysql/charsets/geostd8.xml from install of MySQL-server-community-5.1.73-1.rhel5.x86_64 conflicts with file from package MySQL-server-5.6.19-1.rhel5.x86_64
       file /usr/share/mysql/charsets/greek.xml from install of MySQL-server-community-5.1.73-1.rhel5.x86_64 conflicts with file from package MySQL-server-5.6.19-1.rhel5.x86_64
       file /usr/share/mysql/charsets/hebrew.xml from install of MySQL-server-community-5.1.73-1.rhel5.x86_64 conflicts with file from package MySQL-server-5.6.19-1.rhel5.x86_64
       file /usr/share/mysql/charsets/hp8.xml from install of MySQL-server-community-5.1.73-1.rhel5.x86_64 conflicts with file from package MySQL-server-5.6.19-1.rhel5.x86_64
       file /usr/share/mysql/charsets/keybcs2.xml from install of MySQL-server-community-5.1.73-1.rhel5.x86_64 conflicts with file from package MySQL-server-5.6.19-1.rhel5.x86_64
       file /usr/share/mysql/charsets/koi8r.xml from install of MySQL-server-community-5.1.73-1.rhel5.x86_64 conflicts with file from package MySQL-server-5.6.19-1.rhel5.x86_64
       file /usr/share/mysql/charsets/koi8u.xml from install of MySQL-server-community-5.1.73-1.rhel5.x86_64 conflicts with file from package MySQL-server-5.6.19-1.rhel5.x86_64
       file /usr/share/mysql/charsets/latin1.xml from install of MySQL-server-community-5.1.73-1.rhel5.x86_64 conflicts with file from package MySQL-server-5.6.19-1.rhel5.x86_64
       file /usr/share/mysql/charsets/latin2.xml from install of MySQL-server-community-5.1.73-1.rhel5.x86_64 conflicts with file from package MySQL-server-5.6.19-1.rhel5.x86_64
       file /usr/share/mysql/charsets/latin5.xml from install of MySQL-server-community-5.1.73-1.rhel5.x86_64 conflicts with file from package MySQL-server-5.6.19-1.rhel5.x86_64
       file /usr/share/mysql/charsets/latin7.xml from install of MySQL-server-community-5.1.73-1.rhel5.x86_64 conflicts with file from package MySQL-server-5.6.19-1.rhel5.x86_64
       file /usr/share/mysql/charsets/macce.xml from install of MySQL-server-community-5.1.73-1.rhel5.x86_64 conflicts with file from package MySQL-server-5.6.19-1.rhel5.x86_64
       file /usr/share/mysql/charsets/macroman.xml from install of MySQL-server-community-5.1.73-1.rhel5.x86_64 conflicts with file from package MySQL-server-5.6.19-1.rhel5.x86_64
       file /usr/share/mysql/charsets/swe7.xml from install of MySQL-server-community-5.1.73-1.rhel5.x86_64 conflicts with file from package MySQL-server-5.6.19-1.rhel5.x86_64
       file /usr/share/mysql/czech/errmsg.sys from install of MySQL-server-community-5.1.73-1.rhel5.x86_64 conflicts with file from package MySQL-server-5.6.19-1.rhel5.x86_64
       file /usr/share/mysql/danish/errmsg.sys from install of MySQL-server-community-5.1.73-1.rhel5.x86_64 conflicts with file from package MySQL-server-5.6.19-1.rhel5.x86_64
       file /usr/share/mysql/dutch/errmsg.sys from install of MySQL-server-community-5.1.73-1.rhel5.x86_64 conflicts with file from package MySQL-server-5.6.19-1.rhel5.x86_64
       file /usr/share/mysql/english/errmsg.sys from install of MySQL-server-community-5.1.73-1.rhel5.x86_64 conflicts with file from package MySQL-server-5.6.19-1.rhel5.x86_64
       file /usr/share/mysql/estonian/errmsg.sys from install of MySQL-server-community-5.1.73-1.rhel5.x86_64 conflicts with file from package MySQL-server-5.6.19-1.rhel5.x86_64
       file /usr/share/mysql/fill_help_tables.sql from install of MySQL-server-community-5.1.73-1.rhel5.x86_64 conflicts with file from package MySQL-server-5.6.19-1.rhel5.x86_64
       file /usr/share/mysql/french/errmsg.sys from install of MySQL-server-community-5.1.73-1.rhel5.x86_64 conflicts with file from package MySQL-server-5.6.19-1.rhel5.x86_64
       file /usr/share/mysql/german/errmsg.sys from install of MySQL-server-community-5.1.73-1.rhel5.x86_64 conflicts with file from package MySQL-server-5.6.19-1.rhel5.x86_64
       file /usr/share/mysql/greek/errmsg.sys from install of MySQL-server-community-5.1.73-1.rhel5.x86_64 conflicts with file from package MySQL-server-5.6.19-1.rhel5.x86_64
       file /usr/share/mysql/hungarian/errmsg.sys from install of MySQL-server-community-5.1.73-1.rhel5.x86_64 conflicts with file from package MySQL-server-5.6.19-1.rhel5.x86_64
       file /usr/share/mysql/italian/errmsg.sys from install of MySQL-server-community-5.1.73-1.rhel5.x86_64 conflicts with file from package MySQL-server-5.6.19-1.rhel5.x86_64
       file /usr/share/mysql/japanese/errmsg.sys from install of MySQL-server-community-5.1.73-1.rhel5.x86_64 conflicts with file from package MySQL-server-5.6.19-1.rhel5.x86_64
       file /usr/share/mysql/korean/errmsg.sys from install of MySQL-server-community-5.1.73-1.rhel5.x86_64 conflicts with file from package MySQL-server-5.6.19-1.rhel5.x86_64
       file /usr/share/mysql/mysql-log-rotate from install of MySQL-server-community-5.1.73-1.rhel5.x86_64 conflicts with file from package MySQL-server-5.6.19-1.rhel5.x86_64
       file /usr/share/mysql/mysql.server from install of MySQL-server-community-5.1.73-1.rhel5.x86_64 conflicts with file from package MySQL-server-5.6.19-1.rhel5.x86_64
       file /usr/share/mysql/mysql_system_tables.sql from install of MySQL-server-community-5.1.73-1.rhel5.x86_64 conflicts with file from package MySQL-server-5.6.19-1.rhel5.x86_64
       file /usr/share/mysql/mysql_system_tables_data.sql from install of MySQL-server-community-5.1.73-1.rhel5.x86_64 conflicts with file from package MySQL-server-5.6.19-1.rhel5.x86_64
       file /usr/share/mysql/mysql_test_data_timezone.sql from install of MySQL-server-community-5.1.73-1.rhel5.x86_64 conflicts with file from package MySQL-server-5.6.19-1.rhel5.x86_64
       file /usr/share/mysql/norwegian-ny/errmsg.sys from install of MySQL-server-community-5.1.73-1.rhel5.x86_64 conflicts with file from package MySQL-server-5.6.19-1.rhel5.x86_64
       file /usr/share/mysql/norwegian/errmsg.sys from install of MySQL-server-community-5.1.73-1.rhel5.x86_64 conflicts with file from package MySQL-server-5.6.19-1.rhel5.x86_64
       file /usr/share/mysql/polish/errmsg.sys from install of MySQL-server-community-5.1.73-1.rhel5.x86_64 conflicts with file from package MySQL-server-5.6.19-1.rhel5.x86_64
       file /usr/share/mysql/portuguese/errmsg.sys from install of MySQL-server-community-5.1.73-1.rhel5.x86_64 conflicts with file from package MySQL-server-5.6.19-1.rhel5.x86_64
       file /usr/share/mysql/romanian/errmsg.sys from install of MySQL-server-community-5.1.73-1.rhel5.x86_64 conflicts with file from package MySQL-server-5.6.19-1.rhel5.x86_64
       file /usr/share/mysql/russian/errmsg.sys from install of MySQL-server-community-5.1.73-1.rhel5.x86_64 conflicts with file from package MySQL-server-5.6.19-1.rhel5.x86_64
       file /usr/share/mysql/serbian/errmsg.sys from install of MySQL-server-community-5.1.73-1.rhel5.x86_64 conflicts with file from package MySQL-server-5.6.19-1.rhel5.x86_64
       file /usr/share/mysql/slovak/errmsg.sys from install of MySQL-server-community-5.1.73-1.rhel5.x86_64 conflicts with file from package MySQL-server-5.6.19-1.rhel5.x86_64
       file /usr/share/mysql/spanish/errmsg.sys from install of MySQL-server-community-5.1.73-1.rhel5.x86_64 conflicts with file from package MySQL-server-5.6.19-1.rhel5.x86_64
       file /usr/share/mysql/swedish/errmsg.sys from install of MySQL-server-community-5.1.73-1.rhel5.x86_64 conflicts with file from package MySQL-server-5.6.19-1.rhel5.x86_64
       file /usr/share/mysql/ukrainian/errmsg.sys from install of MySQL-server-community-5.1.73-1.rhel5.x86_64 conflicts with file from package MySQL-server

最後 MySQL 伺服器沒有安裝。我不知道我犯了什麼錯誤?

您還沒有解除安裝 My​​SQL-server-5.6.19-1.rhel5.x86_64 和 MySQL-server,也許還有其他。請不要手動刪除打封包件,因為那隻會讓事情變得更成問題。

我引用了我前段時間寫的類似答案:

搜尋現在安裝的mysql相關包:rpm -qa | grep -i mysql

刪除任何包,如 mysql、mysql-server、mysql-client、mysql-shared、mysql-shared-compat、mysql-libs。yum remove mysql-server etc. 您不需要刪除 mysql 庫綁定,如 python-mysqldb、php-mysql 等,除非它們與以前的某些包有依賴關係。

然後按照您的操作安裝所需的版本。

您遇到問題的原因是因為根據安裝源(官方儲存庫、發行版儲存庫、第 3 方…),軟體包的名稱可能略有不同,您可能會陷入依賴地獄,移動時會讓人頭疼供應商/儲存庫之間。它也可能有點誤導,因為mysql 包可能包含別名和轉換包。固定和優先級可以使它更順暢,但這並不總是微不足道的。

**警告:**如果您嘗試重用配置文件和/或數據文件(在刪除時不會刪除),請小心,因為在某些情況下,由於二進制格式的更改,從 5.6 降級到 5.5/5.1 可能不兼容(除非特別注意採取)。

**提示:**如果您希望在版本之間遷移時獲得更大的靈活性,您可以使用autocontent binary packages。它非常適合測試。你失去了簡單的升級和包管理,但你獲得了很多控制權(例如降級,以防出現錯誤)。MySQL Sandbox也是一個非常好的工具,用於管理不同版本和拓撲的測試。

引用自:https://dba.stackexchange.com/questions/72054