Installing MariaDB with yum

https://kb.askmonty.org/en/installing-mariadb-with-yum/



We have YUM repositories for several YUM-based Linux distributions. To easily generate the appropriate MariaDB.repo entry for your distribution, use our online repository generator.


We currently have YUM repositories for CentOS 5, CentOS 6, RHEL 5, RHEL 6, Fedora 16, and Fedora 17.


Once you have your MariaDB.repo entry, add it to a file under /etc/yum.repos.d/. (We suggest something like/etc/yum.repos.d/MariaDB.repo.)


An example MariaDB.repo file for CentOS 5 x86 is:

[mariadb]
name = MariaDB
baseurl = http://yum.mariadb.org/5.5/centos5-x86
gpgkey=https://yum.mariadb.org/RPM-GPG-KEY-MariaDB
gpgcheck=1

The example file above includes a gpgkey line to automatically fetch the GPG key we use to sign the repositories. This key enables yum and rpm to verify the integrity of the packages it downloads.


Installing MariaDB with YUM

With the repo file in place you can now install MariaDB like so:

sudo yum install MariaDB-server MariaDB-client

If you don't have the MariaDB GPG Signing key installed, YUM will prompt you to install it after downloading the packages (but before installing them).



After Installation

After the installation completes, start MariaDB with:
sudo /etc/init.d/mysql start

Manually Importing the MariaDB Signing Key

If you like, you can manually install the GPG key using the  rpm  application like so:

sudo rpm --import https://yum.mariadb.org/RPM-GPG-KEY-MariaDB



评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值