MySQL

1
2
3
4
5
6
## 下载并安装 rpm 包
wget http://repo.mysql.com/mysql-community-release-el6-5.noarch.rpm
sudo rpm -ivh mysql-community-release-el6-5.noarch.rpm

## 升级
sudo yum upgrade mysql-server

PHP 5.6

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
## 升级 php 以及 php-mysql
wget https://dl.fedoraproject.org/pub/epel/epel-release-latest-6.noarch.rpm
sudo rpm -Uvh epel-release-latest-6.noarch.rpm

wget http://rpms.famillecollet.com/enterprise/remi-release-6.rpm
sudo rpm -Uvh remi-release-6.rpm

sudo yum update
sudo yum --enablerepo=remi,remi-php56 update

## 升级 phpmyadmin
sudo yum upgrade phpmyadmin

## 重启 apache
sudo service httpd restart