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!
版权声明:本文内容由互联网用户自发贡献,该文观点与技术仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 dio@foxmail.com 举报,一经查实,本站将立刻删除。