注:从mysql 5.1无法通过rpm -U 升级安装到mysql 5.6,需先卸掉mysql-libs,然后再rpm -i安装
需先卸载mysql-libs,不然会报错:file /usr/share/man/man1/my_print_defaults.1.gz from install of MySQL-server-5.6.24-1.el6.x86_64 conflicts with file from package mysql-5.1.73-3.el6_5.x86_64
# yum remove mysql-libs (会卸掉mysql-libs、cronie、cronie-anacron、crontabs、Perl-DBD-MySQL、mysql、msyql-server、postfix、sysstat)
# rpm -i MySQL-server-5.6.24-1.el6.x86_64.rpm
# rpm -i MySQL-shared-5.6.24-1.el6.x86_64.rpm
# rpm -i MySQL-client-5.6.24-1.el6.x86_64.rpm
# service mysql start
时间: 2024-10-15 00:07:37