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