Redhat 6.6 mysql 5.1更新到5.6步驟
注:從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-devel-5.6.24-1.el6.x86_64.rpm
# rpm -i MySQL-client-5.6.24-1.el6.x86_64.rpm
# mv /etc/my.cnf.rpmsave /etc/my.cnf (原有的my.cnf會被改名為my.cnf.rpmsave)
另外更新後需要修複下mysql資料結構(不修複mysqld.log裡會有報錯的)
# mysql_upgrade -u root -p
輸入密碼
# service mysql start
本文轉自linux部落格51CTO部落格,原文連結http://blog.51cto.com/yangzhiming/1659832如需轉載請自行聯系原作者
yangzhimingg