更新 数据库基础.md

This commit is contained in:
wxin 2025-03-12 15:50:01 +08:00
parent 808c553ac3
commit d756f889c1

View File

@ -100,7 +100,7 @@ mysql> alter user 'root'@'localhost' identified by 'Wjifja@7412347289';
卸载安装的mariadb
```bash
[root@mysql ~]# rpm -e --nodeps mariadb
[root@mysql ~]# rpm -e --nodeps mariadb-libs
```
下载rpm包
@ -112,6 +112,7 @@ mysql> alter user 'root'@'localhost' identified by 'Wjifja@7412347289';
解压tar文件
```bash
[root@mysql ~]# mkdir mysql
[root@mysql ~]# tar xvf mysql-5.7.30-1.el7.x86_64.rpm-bundle.tar -C mysql && cd mysql
```
@ -122,6 +123,7 @@ mysql> alter user 'root'@'localhost' identified by 'Wjifja@7412347289';
[root@mysql mysql]# rpm -i mysql-community-libs-5.7.30-1.el7.x86_64.rpm
[root@mysql mysql]# rpm -i mysql-community-client-5.7.30-1.el7.x86_64.rpm
[root@mysql mysql]# rpm -i mysql-community-server-5.7.30-1.el7.x86_64.rpm
[root@mysql mysql]# rpm -ivh mysql-community-libs-compat-5.7.30-1.el7.x86_64.rpm
```
启动服务