码迷,mamicode.com
首页 > 数据库 > 详细

mariadb简介

时间:2015-04-05 10:34:04      阅读:165      评论:0      收藏:0      [点我收藏+]

标签:mariadb简介


1,mariadb简介

官网链接:https://mariadb.org
MariaDB由MySQL的创始人Michael Widenius(英语:Michael Widenius)主导开发,他早前曾以10亿美元的价格,将自己创建的公司MySQL AB卖给了SUN,此后,随着SUN被甲骨文收购,MySQL的所有权也落入Oracle的手中。MariaDB名称来自Michael Widenius的女儿Maria的名字。

2.与Mysql区别

Oracle在发布MySQL5.6后,采用了社区版与企业版区分,同时没有推出5.6的相关修复补丁;

3.安装mariadb

(1)启用MariaDB源
参考链接:https://mariadb.com/kb/en/mariadb/yum/
# cat /etc/yum.repos.d/mariadb.repo
[mariadb]
name = MariaDB
baseurl = http://yum.mariadb.org/10.0/centos6-amd64
gpgkey=https://yum.mariadb.org/RPM-GPG-KEY-MariaDB
gpgcheck=1
(2)安装单机版MariaDB
# yum -y install MariaDB-server
安装集群版MariaDB集群
# yum -y  install MariaDB-server

# yum -y install MariaDB-Galera-server


4.启动并测试mariadb
(1)启动mariadb
# /etc/init.d/mysql start 
(2)测试mariadb

[root@node1 ~]# mysql  -u root -p[
Welcome to the MariaDB monitor.  Commands end with ; or \g.
Your MariaDB connection id is 5
Server version: 10.0.17-MariaDB MariaDB Server

Copyright (c) 2000, 2015, Oracle, MariaDB Corporation Ab and others.

Type ‘help;‘ or ‘\h‘ for help. Type ‘\c‘ to clear the current input statement.

MariaDB [(none)]> show databases;
+--------------------+
| Database           |
+--------------------+
| information_schema |
| mysql              |
| performance_schema |
| test               |
+--------------------+
4 rows in set (0.00 sec)

mariadb简介

标签:mariadb简介

原文地址:http://blog.csdn.net/jacson_bai/article/details/44878683

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!