欢迎光临
我们一直在努力

Linux通过Yum安装MariaDB数据库的技巧

  Linux系统对于MariaDB数据库这款开源免费的小型数据库一定不会陌生,不过虽然许多用户都懂得如何使用MariaDB数据库,但是却也有不少用户不知道该如何安装MariaDB数据库。今天小编就和大家分享下yum 安装 MariaDB 数据库的方法。

Linux通过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

  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

  这就是Linux系统中yum 安装 MariaDB 数据库的方法了,有需要的用户就用这种方法进行安装吧。

赞(0)
版权声明:本文采用知识共享 署名4.0国际许可协议 [BY-NC-SA] 进行授权
文章名称:《Linux通过Yum安装MariaDB数据库的技巧》
文章链接:https://pc.adminn.cn/2438.html
本站属非盈利性网站,不接受任何形式广告。本站提供文章纯教程分享,给网民提供教程,文章均采集网路,如侵犯您的权益,请联系我们删除,QQ:805750011。