当前位置:网站首页>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
边栏推荐
- 专精特新“小巨人”再启动,“企业上云”数字赋能
- Getting to know cloud native security for the first time: the best guarantee in the cloud Era
- In the era of knowledge economy, it will teach you to do well in knowledge management
- #21Set经典案例
- Three efficient programming skills of go language
- 2022 recurrent training question bank and answers for hoisting signal Rigger (special type of construction work)
- HarmonyOS-3
- Grendao usage problems
- 杰理之无缝循环播放【篇】
- HarmonyOS. two
猜你喜欢
![Generate binary tree according to preorder & inorder traversal [partition / generation / splicing of left subtree | root | right subtree]](/img/f7/8d026c0e4435fc8fd7a63616b4554d.png)
Generate binary tree according to preorder & inorder traversal [partition / generation / splicing of left subtree | root | right subtree]

遠程辦公之:在家露營辦公小工具| 社區征文

Method of establishing unity thermodynamic diagram

puzzle(016.2)指画星河
![Jerry's serial port receiving IO needs to set the digital function [chapter]](/img/04/48e7da42101a53827463d479952f67.png)
Jerry's serial port receiving IO needs to set the digital function [chapter]
![Maximum path sum in binary tree [handle any subtree, then handle the whole tree]](/img/d0/91ab1cc1851d7137a1cab3cf458302.png)
Maximum path sum in binary tree [handle any subtree, then handle the whole tree]

Kunpeng arm server compilation and installation paddlepaddle

A review of text contrastive learning

21set classic case
![[R language data science] (XIV): random variables and basic statistics](/img/87/3606041a588ecc615eb8013cdf9fb1.png)
[R language data science] (XIV): random variables and basic statistics
随机推荐
The real project managers are all closed-loop masters!
Halcon 绘制区域 到图片中
greendao使用问题
Autorf: learn the radiation field of 3D objects from single view (CVPR 2022)
Puzzle (016.2) finger painting Galaxy
数商云:加强供应商管理,助推航空运输企业与供应商高效协同
90% of the project managers have skipped the pit. Are you still in the pit?
杰理之红外滤波【篇】
Simulated 100 questions and answers of fluorination process examination in 2022
Baidu map API drawing points and tips
百度地图API绘制点及提示信息
Three efficient programming skills of go language
Jerry added an input capture channel [chapter]
box-sizing
Generate binary tree according to preorder & inorder traversal [partition / generation / splicing of left subtree | root | right subtree]
Operation of simulated examination platform for examination questions of coal production and operation units (safety production management personnel) in 2022
pip uninstall all packages except builtin package
Rongyun communication has "hacked" into the heart of the bank
ASCII code table extracted from tanhaoqiang's C program design (comparison table of common characters and ASCII codes)
食品饮料行业渠道商管理系统解决方案:实现渠道数字化营销布局