debian centos升级percona server mysql
来源:    发布时间: 2020-03-26 09:14   631 次浏览   大小:  16px  14px  12px


debian下升级percona server:



1. 停用服务  systemctl stop mysql



2.安装相关服务 

debian下升级percona server:

1. 停用服务  systemctl stop mysql

2.安装相关服务 
apt-get install percona-server-server-5.7 percona-server-tokudb-5.7

3. 更新数据架构 mysql_upgrade -uroot -p

4.重启服务 systemctl restart mysql

centos 下升级percona server:

1.停用服务  systemctl stop mysqld

2.查询确认安装过的组件
rpm -qa | grep Percona-Server

3.卸载旧版本组件
rpm -qa | grep Percona-Server | xargs rpm -e --nodeps

4.安装新版本组件

yum install Percona-Server-server-57 Percona-Server-tokudb-57
5.更新数据架构 mysql_upgrade -uroot -p

6.重启服务 更新数据架构 systemctl restart mysqld