We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 507b632 commit c151cdcCopy full SHA for c151cdc
include/mariadb-10.4.sh
@@ -1,7 +1,6 @@
1
#!/usr/bin/env bash
2
3
-# 安装 mariadb 10.4 二进制安装成功
4
-Install_MariaDB104(){
+init(){
5
# 安装 mariadb.repo
6
cat > /etc/yum.repos.d/mariadb.repo << EOF
7
# MariaDB 10.4 CentOS repository list - created 2020-02-17 06:03 UTC
@@ -16,10 +15,18 @@ EOF
16
15
# 更换 mariadb 为国内源(建议使用 HTTPS)
17
sed -i 's#yum\.mariadb\.org#mirrors.ustc.edu.cn/mariadb/yum#' /etc/yum.repos.d/mariadb.repo
18
sed -i 's#http://mirrors\.ustc\.edu\.cn#https://mirrors.ustc.edu.cn#g' /etc/yum.repos.d/mariadb.repo
+}
19
+
20
+# 安装 mariadb 10.4 二进制安装成功
21
+main(){
22
23
+init
24
25
# 安装 mariadb
26
yum install MariaDB-server MariaDB-client -y
27
28
# https://blog.csdn.net/zhezhebie/article/details/73549741
29
# https://mirrors.ustc.edu.cn/help/mariadb.html
-}
30
31
32
+main
0 commit comments