How to Install MariaDB 10 on CentOS 6.7

1. Add the Official MariaDB Yum Repository

 

First off, we need to add the Office MariaDB Yum Repository.

 

Type in the following to add the MariaDB repository to your system:

 

nano /etc/yum.repos.d/MariaDB.repo

 

Next, you need to copy and paste the following content into the editor:

 

[mariadb]
name = MariaDB
baseurl = http://yum.mariadb.org/10.0/centos6-amd64
gpgkey=https://yum.mariadb.org/RPM-GPG-KEY-MariaDB
gpgcheck=1

 

Type in CTRL-O to save, and CTRL-X to exit

 

2. Install MariaDB 10

 

Now you can install MariaDB 10, enter the following command:

 

yum -y install MariaDB-server MariaDB-client

 

Once the install has completed, start MariaDB. The command is similar to how you would start MySQL:

 

service mysql start

 

Now check to make sure that MariaDB 10 is installed:

 

mysql -v

 

You should see output similar to the following:

 

Welcome to the MariaDB monitor. Commands end with ; or \g.
Your MariaDB connection id is 3
Server version: 10.0.21-MariaDB MariaDB Server

 

And you’re done!

转载于:https://my.oschina.net/liting/blog/688154

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值