linux中利用yum 安装 MariaDB 数据库步骤
发布:smiling 来源: PHP粉丝网 添加日期:2015-04-29 13:45:48 浏览: 评论:0
MariaDB数据库是一款开源免费的小型数据库了,MariaDB是由前mysql数据库开发团队做的,因为mysql已经被收藏了,下面我们就来看看yum 安装 MariaDB 数据库的步骤,希望文章对各位有帮助.
准备yum一个lamp环境,发现yum版本的mysql居然依然是5.1.x的版本,因此准备更换为MariaDB.
配置源:
- [root@localhost ~]# cat /etc/yum.repos.d/MariaDB.repo
- # MariaDB 10.0 CentOS repository list - created 2013-08-23 13:08 UTC
- # http://mariadb.org/mariadb/repositories/
- [mariadb]
- name = MariaDB
- baseurl = http://yum.mariadb.org/10.0/centos6-amd64
- gpgkey=https://yum.mariadb.org/RPM-GPG-KEY-MariaDB
- gpgcheck=1
检查源:
- [root@localhost ~]# yum search mariadb
- Loaded plugins: fastestmirror
- Loading mirror speeds from cached hostfile
- * base: ftp.sjtu.edu.cn
- * extras: mirrors.aliyun.com
- * updates: mirrors.aliyun.com
- ======================================================= N/S Matched: mariadb ========================================================
- MariaDB-Galera-server.x86_64 : MariaDB: a very fast and robust SQL database server
- MariaDB-Galera-test.x86_64 : MariaDB: a very fast and robust SQL database server
- MariaDB-cassandra-engine.x86_64 : MariaDB: a very fast and robust SQL database server
- MariaDB-client.x86_64 : MariaDB: a very fast and robust SQL database server
- MariaDB-common.x86_64 : MariaDB: a very fast and robust SQL database server
- MariaDB-compat.x86_64 : MariaDB: a very fast and robust SQL database server
- MariaDB-connect-engine.x86_64 : MariaDB: a very fast and robust SQL database server
- MariaDB-devel.x86_64 : MariaDB: a very fast and robust SQL database server
- MariaDB-oqgraph-engine.x86_64 : MariaDB: a very fast and robust SQL database server
- MariaDB-server.x86_64 : MariaDB: a very fast and robust SQL database server
- MariaDB-shared.x86_64 : MariaDB: a very fast and robust SQL database server
- MariaDB-test.x86_64 : MariaDB: a very fast and robust SQL database server //phpfensi.com
- Name and summary matches only, use "search all" for everything.
安装database:
[root@localhost ~]# yum install MariaDB-server MariaDB-client
[root@localhost ~]# yum install MariaDB-*
运行database:
- [root@localhost ~]# /etc/init.d/mysql start
- Starting MySQL. SUCCESS!
- [root@localhost ~]# mysql -V
- mysql Ver 15.1 Distrib 10.0.17-MariaDB, for Linux (x86_64) using readline 5.1
Tags: yum安装 MariaDB数据库
推荐文章
热门文章
最新评论文章
- 写给考虑创业的年轻程序员(10)
- PHP新手上路(一)(7)
- 惹恼程序员的十件事(5)
- PHP邮件发送例子,已测试成功(5)
- 致初学者:PHP比ASP优秀的七个理由(4)
- PHP会被淘汰吗?(4)
- PHP新手上路(四)(4)
- 如何去学习PHP?(2)
- 简单入门级php分页代码(2)
- php中邮箱email 电话等格式的验证(2)