install mariadb 10.11 on rocky9

2024-07-25

1、清理旧版本mysql或者Mariadb

2、# https://mirrors.aliyun.com/mariadb/
3、
#wget -c https://mirrors.aliyun.com/mariadb/yum/11.4.2/rocky9-amd64/MariaDB.repo -P /etc/yum.repos.d

cat << EOF > /etc/yum.repos.d/mariadb.repo
[mariadb]
name = MariaDB10
#baseurl = https://mirrors.aliyun.com/mariadb/yum/10.6.18/rhel9-amd64/
#baseurl = https://mirrors.aliyun.com/mariadb/yum/10.11/rhel7-amd64/
#baseurl = https://mirrors.aliyun.com/mariadb/yum/11.4.2/rhel9-amd64/
###
baseurl = https://mirrors.aliyun.com/mariadb/yum/10.11/rocky9-amd64/
gpgkey=https://mirrors.aliyun.com/mariadb/yum/RPM-GPG-KEY-MariaDB
gpgcheck=1
EOF

4、dnf -y install mariadb-server
systemctl enable mariadb.service
5、#journalctl -xeu mariadb.service
6、mysqladmin -u root -p
7、vi /etc/my.cnf.d/server.conf

分类:数据库 | 标签: |

相关日志

评论被关闭!