当前位置:网站首页>欧拉系统(euleros):升级Mysql
欧拉系统(euleros):升级Mysql
2022-08-01 00:15:00 【SangBigYe】
欧拉系统版本
Linux version 4.18.0-147.5.2.1.h579.eulerosv2r10.x86_64 ([email protected]) (gcc version 7.3.0 (GCC)) #1 SMP Sat Jul 31 09:58:46 UTC 2021
ps:当前版本应该是基于centos 8的,所以下载rpm包的时候,使用基于centos 8 的软件包即可
之前安装过8.0.28了,这次需要升级一下,解决漏洞问题
升级Mysql
下载地址列表:https://dev.mysql.com/downloads/mysql/
文件夹下创建mysql文件夹,并将下载的文件拷贝到mysql中,并解压出来
mysql-community-common-8.0.30-1.el8.x86_64.rpm
mysql-community-libs-8.0.30-1.el8.x86_64.rpm
mysql-community-client-plugins-8.0.30-1.el8.x86_64.rpm
mysql-community-client-8.0.30-1.el8.x86_64.rpm
mysql-community-icu-data-files-8.0.30-1.el8.x86_64.rpm
mysql-community-server-8.0.30-1.el8.x86_64.rpm
备份数据库
升级不会删除数据库,但是保险起见,建议备份一下
关闭数据库
mysqladmin -u root -p shutdown
卸载旧版本
rpm -e mysql-community-server
升级
进入到mysql文件夹下执行
rpm -Uvh *
需要特别注意
需要特别注意
需要特别注意
MySQL 8.0.16之前的版本需要执行
mysql_upgrade -u root -p
MySQL 8.0.16之后的版本直接往下看
启动
systemctl start mysqld
确认
启动后,连接一下,确认启动成功后,再重启一下
systemctl restart mysqld
边栏推荐
- 基于simulink的Active anti-islanding-AFD主动反孤岛模型仿真
- 如何设计高可用高性能中间件 - 作业
- 《ArchSummit:时代的呐喊,技术人听得到》
- Shell common script: Nexus batch upload local warehouse script
- Compose principle - the view and the principle of two-way data binding
- 基于mysql的消息队列设计
- [AMEX] LGBM Optuna美国运通信用卡欺诈赛 kaggle
- 继承和友元,静态成员的关系
- SVN服务器搭建+SVN客户端+TeamCity集成环境搭建+VS2019开发
- Flutter教程之 02 Flutter 桌面程序开发入门教程运行hello world (教程含源码)
猜你喜欢
如何设计高可用高性能中间件 - 作业
Matlab/ArcGIS processing GPM global monthly precipitation data
pycaret源码分析:下载数据集\Lib\site-packages\pycaret\datasets.py
[Microservice] Distributed Transaction Solution - Seata
Flink 1.13(八)CDC
清华大学陈建宇教授团队 | 基于接触丰富机器人操作的接触安全强化学习框架
[AMEX] LGBM Optuna美国运通信用卡欺诈赛 kaggle
How to Design High Availability and High Performance Middleware - Homework
[AMEX] LGBM Optuna American Express Credit Card Fraud Contest kaggle
Rainbow share | how to use moving targets defense technology to guard against the unknown
随机推荐
面试突击69:TCP 可靠吗?为什么?
Design of Fire and Anti-theft System Based on Single Chip GSM
SQL injection Less47 (error injection) and Less49 (time blind injection)
Redis五种数据类型简介
SQL injection Less42 (POST type stack injection)
Program processes and threads (concurrency and parallelism of threads) and basic creation and use of threads
Flink 1.13(八)CDC
Drawing process of hand-drawn map of scenic spots
pycaret source code analysis: download dataset\Lib\site-packages\pycaret\datasets.py
Likou Binary Tree
【1161. 最大层内元素和】
Carefully summarize thirteen suggestions to help you create more suitable MySQL indexes
【读书笔记->数据分析】02 数据分析准备
/etc/sysconfig/network-scripts configure the network card
硬件设备计算存储及数据交互杂谈
[AMEX] LGBM Optuna美国运通信用卡欺诈赛 kaggle
继承和友元,静态成员的关系
【FPGA教程案例43】图像案例3——通过verilog实现图像sobel边缘提取,通过MATLAB进行辅助验证
SQL注入 Less38(堆叠注入)
Shell common script: Nexus batch upload local warehouse script