📜  更新 mysql centos - SQL 代码示例

📅  最后修改于: 2022-03-11 15:05:27.539000             🧑  作者: Mango

代码示例1
# WARNING: Backup before you do this as it will delete all your databases
wget http://repo.mysql.com/mysql57-community-release-el7.rpm -P /tmp/
yum remove mysql-community-release
rpm -ivh /tmp/mysql57-community-release-el7.rpm
yum update mysql
sudo systemctl start mysqld
sudo systemctl status mysqld
sudo mysql_upgrade
sudo systemctl restart mysqld
sudo systemctl status mysqld