update mysql centos 1

update mysql centos

# 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

Here is what the above code is Doing:
1. Downloading the MySQL 5.7 repo
2. Removing the MySQL 5.6 repo
3. Installing the MySQL 5.7 repo
4. Updating MySQL
5. Starting MySQL
6. Checking the status of MySQL
7. Upgrading MySQL
8. Restarting MySQL
9. Checking the status of MySQL

Similar Posts