当前位置:网站首页>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.49Unzip 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
边栏推荐
- Snow Ice City (blackened)
- 这3个后生,比马化腾、张一鸣还狠
- 普源示波器软件,Rigol示波器上位机软件NS-Scope介绍
- 工厂模式实现
- MySQL-DML
- Is the Huatai Securities account given by qiniu school true? Is it safe to open an account
- Record the errors encountered in the pytorch training model once
- 适配器电源自动测试设备|充电器ATE测试系统NSAT-8000介绍
- 5 best practices for perfect security code auditing
- Never ending database injection attack and defense
猜你喜欢

南京大学 静态软件分析(static program analyzes)-- introduction 学习笔记

One article quick learning - playing with MySQL time operation function and detailed explanation of time matching operation + instance code

XML实体注入漏洞

2022安全员-B证复训题库及模拟考试

知识点:PCB电路板的几种特殊布线方法
![SSD [target detection]](/img/f5/1a4a9868cddb24fb08db9fae4db290.png)
SSD [target detection]

Harmonyos training I

【无标题】

2022 safety officer-c certificate title and answer

Quantitative research on heterogeneous communities 4 rate of change with bands
随机推荐
服务器安全审计系统设计与实现
Broken knowledge
这3个后生,比马化腾、张一鸣还狠
工厂模式实现
WPF 使用 MAUI 的自绘制逻辑
PCB电路板设计都有哪些注意事项?
What if the server is invaded
站在数字化风口,工装企业如何“飞起来”
DevSecOps:S-SDLC企业最佳实践
是德示波器软件,Keysight示波器上位机软件NS-Scope
DDoS attack and defense: from principle to practice
Ansible 配置首次ssh免认证的操作说明
记一次Vmware虚拟机升级GLIBC导致系统瘫痪的恢复解决方法
ThinkPHP安全开发规范
重磅,MapStruct 1.5 发布,这次终于支持Map转为Bean了!
Golang implements redis (9): use geohash to search people nearby
It is the German oscilloscope software and the keysight oscilloscope upper computer software ns-scope
ThinkPHP security development specification
Nature sub Journal | Zhou concentrated the team to reveal that long-term climate warming leads to the decrease of soil microbial diversity in grassland
2022危险化学品经营单位安全管理人员特种作业证考试题库及在线模拟考试