Linux安装部署Mysql8.x操作步骤

CentOS 9与CentOS8的区别

设置开机自启和以前的版本有点区别

一、安装包准备

MySQL下载地址:https://dev.mysql.com/downloads/file/?id=480751

1.将安装上传到/opt/software/

[appview@salve1 software]$ ll
总用量 384624
-rw-rw-r-- 1 appview appview 393852364 5月   6 22:21 mysql-8.0.13-linux-glibc2.12-x86_64.tar.xz

2.卸载自带的Mysql-libs

rpm -qa | grep -i -E mysql\|mariadb | xargs -n1 sudo rpm -e --nodeps

3.解压到指定目录

[root@salve1 software]# tar -xvf mysql-8.0.13-linux-glibc2.12-x86_64.tar.xz -C /usr/local/
[root@salve1 software]# cd /usr/local/
[root@salve1 local]# ll
总用量 0
drwxr-xr-x. 2 root root   6 5月  11 2019 bin
drwxr-xr-x. 2 root root   6 5月  11 2019 etc
drwxr-xr-x. 2 root root   6 5月  11 2019 games
drwxr-xr-x. 2 root root   6 5月  11 2019 include
drwxr-xr-x. 2 root root   6 5月  11 2019 lib
drwxr-xr-x. 2 root root   6 5月  11 2019 lib64
drwxr-xr-x. 2 root root   6 5月  11 2019 libexec
drwxr-xr-x  9 root root 172 5月   6 22:36 mysql-8.0.13-linux-glibc2.12-x86_64
drwxr-xr-x. 2 root root   6 5月  11 2019 sbin
drwxr-xr-x. 5 root root  49 3月  24 01:32 share
drwxr-xr-x. 2 root root   6 5月  11 2019 src
[root@salve1 local]#
[root@salve1 local]# mv mysql-8.0.13-linux-glibc2.12-x86_64   mysql-8.0.13
[root@salve1 local]# cd mysql-8.0.13/
[root@salve1 mysql-8.0.13]# ll
总用量 448
drwxr-xr-x  2 root root    4096 5月   6 22:36 bin
drwxr-xr-x  2 root root      86 5月   6 22:36 docs
drwxr-xr-x  3 root root     266 5月   6 22:35 include
drwxr-xr-x  6 root root    4096 5月   6 22:36 lib
-rw-r--r--  1 7161 31415 335809 10月  7 2018 LICENSE
-rw-r--r--  1 7161 31415 101807 10月  7 2018 LICENSE.router
drwxr-xr-x  4 root root      30 5月   6 22:35 man
-rw-r--r--  1 7161 31415    687 10月  7 2018 README
-rw-r--r--  1 7161 31415    700 10月  7 2018 README.router
drwxr-xr-x 28 root root    4096 5月   6 22:36 share
drwxr-xr-x  2 root root      90 5月   6 22:36 support-files
[root@salve1 mysql-8.0.13]#
[root
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值