- wget http://download.fedora.redhat.com/pub/epel/5/x86_64/epel-release-5-3.noarch.rpm
- http://rpms.famillecollet.com/enterprise/5/remi/x86_64/remi-release-5-7.el5.remi.noarch.rpm
- rpm -ivh epel-release-5-3.noarch.rpm remi-release-5-7.el5.remi.noarch.rpm
- su -
- cd /etc/yum.repos.d
- wget http://rpms.famillecollet.com/remi-enterprise.repo
- yum --enablerepo=remi update (this will update php and mysql)
- yum --enablerepo=remi install php-mbstring (for phpMyAdmin)
ps. 如果出現以下錯誤訊息
Transaction Check Error:
file /usr/share/info/mysql.info.gz from install of mysql-5.1.35-1.el5.remi.x86_64 conflicts with file from package mysql-5.0.45-7.el5.i386
file /usr/share/man/man1/my_print_defaults.1.gz from install of mysql-5.1.35-1.el5.remi.x86_64 conflicts with file from package mysql-5.0.45-7.el5.i386
file /usr/share/man/man1/mysql.1.gz from install of mysql-5.1.35-1.el5.remi.x86_64 conflicts with file from package mysql-5.0.45-7.el5.i386
file /usr/share/man/man1/mysql_config.1.gz from install of mysql-5.1.35-1.el5.remi.x86_64 conflicts with file from package mysql-5.0.45-7.el5.i386
file /usr/share/man/man1/mysql_find_rows.1.gz from install of mysql-5.1.35-1.el5.remi.x86_64 conflicts with file from package mysql-5.0.45-7.el5.i386
file /usr/share/man/man1/mysql_waitpid.1.gz from install of mysql-5.1.35-1.el5.remi.x86_64 conflicts with file from package mysql-5.0.45-7.el5.i386
file /usr/share/man/man1/mysqlaccess.1.gz from install of mysql-5.1.35-1.el5.remi.x86_64 conflicts with file from package mysql-5.0.45-7.el5.i386
file /usr/share/man/man1/mysqladmin.1.gz from install of mysql-5.1.35-1.el5.remi.x86_64 conflicts with file from package mysql-5.0.45-7.el5.i386
file /usr/share/man/man1/mysqldump.1.gz from install of mysql-5.1.35-1.el5.remi.x86_64 conflicts with file from package mysql-5.0.45-7.el5.i386
file /usr/share/man/man1/mysqlshow.1.gz from install of mysql-5.1.35-1.el5.remi.x86_64 conflicts with file from package mysql-5.0.45-7.el5.i386
file /etc/my.cnf from install of mysql-libs-5.1.35-1.el5.remi.x86_64 conflicts with file from package mysql-5.0.45-7.el5.i386
file /usr/share/mysql/charsets/Index.xml from install of mysql-libs-5.1.35-1.el5.remi.x86_64 conflicts with file from package mysql-5.0.45-7.el5.i386
file /usr/share/mysql/charsets/README from install of mysql-libs-5.1.35-1.el5.remi.x86_64 conflicts with file from package mysql-5.0.45-7.el5.i386
file /usr/share/mysql/charsets/ascii.xml from install of mysql-libs-5.1.35-1.el5.remi.x86_64 conflicts with file from package mysql-5.0.45-7.el5.i386
file /usr/share/mysql/charsets/cp1250.xml from install of mysql-libs-5.1.35-1.el5.remi.x86_64 conflicts with file from package mysql-5.0.45-7.el5.i386
file /usr/share/mysql/czech/errmsg.sys from install of mysql-libs-5.1.35-1.el5.remi.x86_64 conflicts with file from package mysql-5.0.45-7.el5.i386
file /usr/share/mysql/danish/errmsg.sys from install of mysql-libs-5.1.35-1.el5.remi.x86_64 conflicts with file from package mysql-5.0.45-7.el5.i386
file /usr/share/mysql/dutch/errmsg.sys from install of mysql-libs-5.1.35-1.el5.remi.x86_64 conflicts with file from package mysql-5.0.45-7.el5.i386
file /usr/share/mysql/english/errmsg.sys from install of mysql-libs-5.1.35-1.el5.remi.x86_64 conflicts with file from package mysql-5.0.45-7.el5.i386
file /usr/share/mysql/estonian/errmsg.sys from install of mysql-libs-5.1.35-1.el5.remi.x86_64 conflicts with file from package mysql-5.0.45-7.el5.i386
file /usr/share/mysql/french/errmsg.sys from install of mysql-libs-5.1.35-1.el5.remi.x86_64 conflicts with file from package mysql-5.0.45-7.el5.i386
file /usr/share/mysql/german/errmsg.sys from install of mysql-libs-5.1.35-1.el5.remi.x86_64 conflicts with file from package mysql-5.0.45-7.el5.i386
file /usr/share/mysql/greek/errmsg.sys from install of mysql-libs-5.1.35-1.el5.remi.x86_64 conflicts with file from package mysql-5.0.45-7.el5.i386
file /usr/share/mysql/hungarian/errmsg.sys from install of mysql-libs-5.1.35-1.el5.remi.x86_64 conflicts with file from package mysql-5.0.45-7.el5.i386
file /usr/share/mysql/italian/errmsg.sys from install of mysql-libs-5.1.35-1.el5.remi.x86_64 conflicts with file from package mysql-5.0.45-7.el5.i386
file /usr/share/mysql/japanese/errmsg.sys from install of mysql-libs-5.1.35-1.el5.remi.x86_64 conflicts with file from package mysql-5.0.45-7.el5.i386
file /usr/share/mysql/korean/errmsg.sys from install of mysql-libs-5.1.35-1.el5.remi.x86_64 conflicts with file from package mysql-5.0.45-7.el5.i386
file /usr/share/mysql/norwegian-ny/errmsg.sys from install of mysql-libs-5.1.35-1.el5.remi.x86_64 conflicts with file from package mysql-5.0.45-7.el5.i386
file /usr/share/mysql/norwegian/errmsg.sys from install of mysql-libs-5.1.35-1.el5.remi.x86_64 conflicts with file from package mysql-5.0.45-7.el5.i386
file /usr/share/mysql/polish/errmsg.sys from install of mysql-libs-5.1.35-1.el5.remi.x86_64 conflicts with file from package mysql-5.0.45-7.el5.i386
file /usr/share/mysql/portuguese/errmsg.sys from install of mysql-libs-5.1.35-1.el5.remi.x86_64 conflicts with file from package mysql-5.0.45-7.el5.i386
file /usr/share/mysql/romanian/errmsg.sys from install of mysql-libs-5.1.35-1.el5.remi.x86_64 conflicts with file from package mysql-5.0.45-7.el5.i386
file /usr/share/mysql/russian/errmsg.sys from install of mysql-libs-5.1.35-1.el5.remi.x86_64 conflicts with file from package mysql-5.0.45-7.el5.i386
file /usr/share/mysql/serbian/errmsg.sys from install of mysql-libs-5.1.35-1.el5.remi.x86_64 conflicts with file from package mysql-5.0.45-7.el5.i386
file /usr/share/mysql/slovak/errmsg.sys from install of mysql-libs-5.1.35-1.el5.remi.x86_64 conflicts with file from package mysql-5.0.45-7.el5.i386
file /usr/share/mysql/spanish/errmsg.sys from install of mysql-libs-5.1.35-1.el5.remi.x86_64 conflicts with file from package mysql-5.0.45-7.el5.i386
file /usr/share/mysql/swedish/errmsg.sys from install of mysql-libs-5.1.35-1.el5.remi.x86_64 conflicts with file from package mysql-5.0.45-7.el5.i386
file /usr/share/mysql/ukrainian/errmsg.sys from install of mysql-libs-5.1.35-1.el5.remi.x86_64 conflicts with file from package mysql-5.0.45-7.el5.i386
執行 rpm -e mysql-5.0.45-7.el5.i386 移除i386版mysql即可。
參考網址:如何將 Centos 5.3 php 5.1.6 升級到 php 5.2.9
沒有留言:
張貼留言