当前位置:网站首页>Centos7 升级MySQL5.6.40至企业版5.6.49
Centos7 升级MySQL5.6.40至企业版5.6.49
2022-06-21 11:49:00 【hu_wenjie】
操作系统环境:CentOS Linux release 7.4.1708 (Core) x64
旧MySQL版本:MySQL-server-5.6.40
企业MySQL版本:mysql-advanced-5.6.49-linux-glibc2.12-x86_64
升级前准备
1、备份数据库
2、备份my.cnf 配置文件
开始升级操作
一、企业版安装包预先处理
首先解压企业版MySQL安装包至 /opt (目录可自由选择,最好存放挂载数据盘的目录)
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解压并重命名文件夹,此处重命名仅为看起来更精简,可选操作
然后按以下步骤逐步执行
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
执行此步骤后,处理旧MySQL服务及配置
1、修改 /etc/my.cnf 确保 datadir 该配置项有配置当前数据的存储目录,不能为空
2、停止旧MySQL服务器 servic
边栏推荐
- 【100个 Unity踩坑小知识点】| Unity控制物体持续指向某个方向
- Secret magic weapon
- 泰克Tektronix示波器上位机软件NS-Scope介绍
- Shell process control - 35. Multi branch case conditional statements
- From zero into the world of software development
- It is the German oscilloscope software and the keysight oscilloscope upper computer software ns-scope
- [comprehensive pen test] sword finger offer II 114 Alien dictionary
- 2022年高压电工判断题及答案
- MySQL-DQL
- DDoS攻击与防御:从原理到实践
猜你喜欢

重磅,MapStruct 1.5 发布,这次终于支持Map转为Bean了!

Introduction to common source oscilloscope software and RIGOL oscilloscope upper computer software ns-scope

南京大学 静态软件分析(static program analyzes)-- Intermediate Representation 学习笔记
![[Harbin Institute of technology] information sharing for the first and second examinations of postgraduate entrance examination](/img/06/df5a64441814c9ecfa2f039318496e.jpg)
[Harbin Institute of technology] information sharing for the first and second examinations of postgraduate entrance examination

Flink调优(一)资源调优、背压问题的分析

Implementation of qcustomplot based on qtquick

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

Machine learning 2-linear regression

Break down tasks

Flink tuning (I) resource tuning and back pressure analysis
随机推荐
完美安全代码审计的5个最佳实践
使用赞美提高绩效
Harmonyos training I
External-Attention-tensorflow(更新中)
typora免费版,无需破解,安装直接使用
QT operation on SQLite database multithreading
【100个 Unity踩坑小知识点】| Unity 使用Quaternion.AngleAxis随机一个方向
Qmlbook learning summary
『忘了再学』Shell流程控制 — 35、多分支case条件语句
One's deceased father grind politics English average cent furnace! What is your current level?
Typera free version, without cracking, can be installed and used directly
记录一次pytorch训练模型遇到的报错
阿宽食品:“方便食品第一股”争夺战继续
Deep water area involvement
机器学习2-线性回归
Use huggingface to quickly load pre training models and datasets in the moment pool cloud
What is the relationship between CSC securities and qiniu school? Is it safe to open a brokerage account
2022安全员-B证复训题库及模拟考试
2022年138套数学分析高等代数考研真题参考解答勘误
High performance parallel programming and optimization | lesson 01 homework