下載rpm檔案
[root@linux /]# wget http://download.fedora.redhat.com/pub/epel/5/i386/epel-release-5-3.noarch.rpm
[root@linux /]# wget http://rpms.famillecollet.com/el5.i386/remi-release-5-7.el5.remi.noarch.rpm
[root@linux /]# wget http://download.fedora.redhat.com/pub/epel/5/i386/epel-release-5-3.noarch.rpm
[root@linux /]# wget http://rpms.famillecollet.com/el5.i386/remi-release-5-7.el5.remi.noarch.rpm
匯入設定檔
[root@linux /]# rpm -Uvh remi-release-5-7.el5.remi.noarch.rpm epel-release-5-3.noarch.rpm
[root@linux /]# rpm -Uvh remi-release-5-7.el5.remi.noarch.rpm epel-release-5-3.noarch.rpm
以epel+remi的來源庫升級php+mysql
[root@linux /]# yum --enablerepo=remi update php mysql
[root@linux /]# yum --enablerepo=remi update php mysql
升級mysql之後,請執行下列動作:
升級table
[root@linux /]# mysql_upgrade –p
升級table
[root@linux /]# mysql_upgrade –p
自動修復table
[root@linux /]# mysqlcheck --all-databases --check-upgrade --auto-repair -p
[root@linux /]# mysqlcheck --all-databases --check-upgrade --auto-repair -p
沒有留言:
張貼留言