当前位置:网站首页>Linux 安装 CenOS7 MySQL - 8.0.26
Linux 安装 CenOS7 MySQL - 8.0.26
2022-06-24 13:03:00 【WA_自动机】
1.打开 VMware,选中要使用的虚拟机,开启此虚拟机

2.选择xshell6,登录CentOS-7

3.登陆完毕

4.首先检查一下环境
rpm -qa | grep -i mariadb
5.卸载mariadb
yum remove ......(文件名)yum remove mariadb-5.5.68-1.el7.x86_64yum remove mariadb-libs-5.5.68-1.el7.x86_64
6.卸载完之后再次检查一下,是否成功

7.如果之前安装过mysql,同样需要卸载
rpm -qa | grep -i mysql卸载上述命令查询出的已安装程序yum remove ......(文件名)
务必卸载干净,反复执行 rpm -qa | grep -i mysql 确认是否有卸载残留
删除 mysql 相关文件find / -name mysql删除上述命令查找出的相关文件rm -rf ......
最后一步删除rm -rf /etc/my.cnf
8.现在开始安装mysql
进入cd /usr/local/
创建文件mkdir mysql
使用rz命令转递文件
如果没有rz命令,需要体现下载rz,sz命令yum -y install lrzsz

9.然后解压mysql
tar -xvf mysql-8.0.26-1.el7.x86_64.rpm-bundle.tar
10.按照顺序安装
- rpm -ivh mysql-community-common-8.0.26-1.el7.x86_64.rpm
- rpm -ivh mysql-community-client-plugins-8.0.26-1.el7.x86_64.rpm
- rpm -ivh mysql-community-libs-8.0.26-1.el7.x86_64.rpm
- rpm -ivh mysql-community-client-8.0.26-1.el7.x86_64.rpm
- rpm -ivh mysql-community-server-8.0.26-1.el7.x86_64.rpm
11.安装成功

12.检查环境是否安装成功
mysql --version或者mysqladmin --version
rpm -qa|grep -i mysql
边栏推荐
- MES在流程和离散制造企业的15个差别(下)
- Rongyun communication has "hacked" into the heart of the bank
- P2pdb white paper
- 日常知识科普
- 杰理之串口接收 IO 需要设置数字功能【篇】
- Rasa 3.x 学习系列-非常荣幸成为 Rasa contributors 源码贡献者,和全世界的Rasa源码贡献者共建共享Rasa社区!
- 知识经济时代,教会你做好知识管理
- 【LeetCode】10、正则表达式匹配
- [learn ZABBIX from scratch] I. Introduction and deployment of ZABBIX
- AQS初探
猜你喜欢

融云通信“三板斧”,“砍”到了银行的心坎上

puzzle(016.2)指画星河
![[untitled]](/img/6c/df2ebb3e39d1e47b8dd74cfdddbb06.gif)
[untitled]

IDEA连接mysql自定义生成实体类代码

One click to generate University, major and even admission probability. Is it so magical for AI to fill in volunteer cards?

How to solve the problem that iterative semi supervised training is difficult to implement in ASR training? RTC dev Meetup

居家办公更要高效-自动化办公完美提升摸鱼时间 | 社区征文

杰理之TIMER0 用默认的 PA13 来检测脉宽【篇】

知识经济时代,教会你做好知识管理

谷歌WayMo提出R4D: 采用参考目标做远程距离估计
随机推荐
如何在物联网低代码平台中进行任务管理?
杰理之开了多种解码格式插卡到播放等待的时间长【篇】
百度地图API绘制点及提示信息
Antd checkbox, limit the selected quantity
文本对比学习综述
Jerrys timer0 uses the default pa13 to detect the pulse width [chapter]
Home office should be more efficient - automated office perfectly improves fishing time | community essay solicitation
取消冒泡
Unity 热力图建立方法
#21Set经典案例
P2PDB 白皮书
The project manager needs to look at six characteristics to build a team
unity 等高线创建方法
遠程辦公之:在家露營辦公小工具| 社區征文
The function and principle of key in V-for
Jerry's serial port receiving IO needs to set the digital function [chapter]
[learn ZABBIX from scratch] I. Introduction and deployment of ZABBIX
Online text entity extraction capability helps applications analyze massive text data
杰理之.睡眠以后定时唤醒系统继续跑不复位【篇】
Jericho After sleep, the system will wake up regularly and continue to run without resetting [chapter]