- cd /etc/yum.repos.d/
touch MariaDB.repo
2. vi MariaDB.repo
3. 粘贴如下代码:
# MariaDB 5.5 CentOS repository list - created 2014-03-04 11:20 UTC
# http://mariadb.org/mariadb/repositories/
[mariadb]
name=MariaDB
baseurl=http://mirrors.ustc.edu.cn/mariadb/mariadb-5.5.43/yum/centos6-amd64
gpgkey=https://yum.mariadb.org/RPM-GPG-KEY-MariaDB
gpgcheck=14. : 键入":wq" 保存退出
5. yum -y install MariaDB-server MariaDB-client #开始安装
6.安装完成,启动数据库服务
service mysql start
时间: 2024-10-29 22:01:39