From d756f889c14fc7f2c39c10029f7bd32f13afa8e2 Mon Sep 17 00:00:00 2001 From: wxin <15253413025@163.com> Date: Wed, 12 Mar 2025 15:50:01 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9B=B4=E6=96=B0=20=E6=95=B0=E6=8D=AE?= =?UTF-8?q?=E5=BA=93=E5=9F=BA=E7=A1=80.md?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- 数据库基础.md | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/数据库基础.md b/数据库基础.md index 54f9819..ff8c1b3 100644 --- a/数据库基础.md +++ b/数据库基础.md @@ -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 ``` 启动服务