MySQL 5.6 升级为5.7(CentOS在线版)

2023-03-16  本文已影响0人  伊夫_艾尔斯

To upgrade MySQL 5.6 to 5.7 on CentOS, you can follow these general steps:

sudo yum remove mysql-server mysql-client
[mysql57-community]
name=MySQL 5.7 Community Server
baseurl=http://repo.mysql.com/yum/mysql-5.7-community/el/7/$basearch/
enabled=1
gpgcheck=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-mysql
sudo yum install mysql-server mysql-client
sudo systemctl start mysqld

-Check the status of the MySQL service to make sure it is running using the following command:

sudo systemctl status mysqld
sudo mysql_upgrade
sudo systemctl restart mysqld
mysql -V

That's it! Your CentOS system should now be running MySQL 5.7.

From ChatGPT!

上一篇 下一篇

猜你喜欢

热点阅读