当前位置:网站首页>Centos7 upgrade MySQL 5.6.40 to enterprise 5.6.49

Centos7 upgrade MySQL 5.6.40 to enterprise 5.6.49

2022-06-21 11:57:00 hu_ wenjie

Operating system environment :CentOS Linux release 7.4.1708 (Core) x64

used MySQL edition :MySQL-server-5.6.40

Enterprises MySQL edition :mysql-advanced-5.6.49-linux-glibc2.12-x86_64

Prepare for upgrade

1、 Backup database

2、 Backup my.cnf The configuration file

Start the upgrade operation

One 、 Enterprise installation package preprocessing

    First unzip the enterprise version MySQL Installation package to /opt ( The directory is freely selectable , It is best to store the directory where the data disk is mounted )

cd /opt
tar -zxvf mysql-advanced-5.6.49-linux-glibc2.12-x86_64.tar.gz
mv mysql-advanced-5.6.49-linux-glibc2.12-x86_64 mysql-advanced-5.6.49

  Unzip and rename the folder , Rename here just to look leaner , Optional operation

Then follow these steps step by step

shell> cd /usr/local
shell> tar zxvf /path/to/mysql-VERSION-OS.tar.gz
shell> ln -s full-path-to-mysql-VERSION-OS mysql
shell> cd mysql
shell> mkdir mysql-files
shell> chown mysql:mysql mysql-files
shell> chmod 750 mysql-files         

After performing this step , Deal with old MySQL Service and configuration

1、 modify /etc/my.cnf Make sure datadir This configuration item has a storage directory for configuring the current data , Can't be empty

2、 Stop the old MySQL The server   servic

原网站

版权声明
本文为[hu_ wenjie]所创,转载请带上原文链接,感谢
https://yzsam.com/2022/172/202206211149267643.html