centos8安装MySQL8.0(上)

准备工作

yum check update

前提插件

yum install gcc -y
yum install -y gcc-c++

下载

1.前提

在usr/local建立mysql文件夹

mkdir -p /usr/lcoal/mysql

2.下载MySQL

2.1

wget下载

wget https://cdn.mysql.com//Downloads/MySQL-8.0/mysql-8.0.27-1.el8.x86_64.rpm-bundle.tar

2.2官网下载然后通过xftp7上传到usr/local/mysql目录下

Mysql8.0.27https://cdn.mysql.com//Downloads/MySQL-8.0/mysql-8.0.27-1.el8.x86_64.rpm-bundle.tarhttps://cdn.mysql.com//Downloads/MySQL-8.0/mysql-8.0.27-1.el8.x86_64.rpm-bundle.tar3.解压并删除压缩包

//解压
tar -xvf mysql-8.0.27-1.el8.x86_64.rpm-bundle.tar

//删除
rm -f mysql-8.0.27-1.el8.x86_64

解压后

mysql-community-client-8.0.27-1.el8.x86_64.rpm
mysql-community-client-debuginfo-8.0.27-1.el8.x86_64.rpm
mysql-community-client-plugins-8.0.27-1.el8.x86_64.rpm
mysql-community-client-plugins-debuginfo-8.0.27-1.el8.x86_64.rpm
mysql-community-common-8.0.27-1.el8.x86_64.rpm
mysql-community-debuginfo-8.0.27-1.el8.x86_64.rpm
mysql-community-debugsource-8.0.27-1.el8.x86_64.rpm
mysql-community-devel-8.0.27-1.el8.x86_64.rpm
mysql-community-libs-8.0.27-1.el8.x86_64.rpm
mysql-community-libs-debuginfo-8.0.27-1.el8.x86_64.rpm
mysql-community-server-8.0.27-1.el8.x86_64.rpm
mysql-community-server-debug-8.0.27-1.el8.x86_64.rpm
mysql-community-server-debug-debuginfo-8.0.27-1.el8.x86_64.rpm
mysql-community-server-debuginfo-8.0.27-1.el8.x86_64.rpm
mysql-community-test-8.0.27-1.el8.x86_64.rpm
mysql-community-test-debuginfo-8.0.27-1.el8.x86_64.rpm

3.1安装

安装以下四个rmp

rpm -ivh mysql-community-common-8.0.27-1.el8.x86_64.rpm --nodeps --force

rpm -ivh mysql-community-libs-8.0.27-1.el8.x86_64.rpm --nodeps --force

rpm -ivh mysql-community-client-8.0.27-1.el8.x86_64.rpm --nodeps --force

rpm -ivh mysql-community-server-8.0.27-1.el8.x86_64.rpm --nodeps --force

查看安装的软件

[root@localhost mysql]# rpm -qa | grep mysql
mysql-community-client-8.0.27-1.el8.x86_64
mysql-community-common-8.0.27-1.el8.x86_64
mysql-community-libs-8.0.27-1.el8.x86_64
mysql-community-server-8.0.27-1.el8.x86_64

设置完善

//创建了date文件
[root@localhost mysql]# mysqld --initialize;
[root@localhost mysql]# chown mysql:mysql /var/lib/mysql -R;
//启动服务
[root@localhost mysql]# systemctl start mysqld.service;
//通过systemctl管理mysqld服务
[root@localhost mysql]# systemctl  enable mysqld;

接centos8安装(下)

https://blog.csdn.net/rj2012001/article/details/121783319icon-default.png?t=LA92https://blog.csdn.net/rj2012001/article/details/121783319

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值