Linux体系对付MariaDB数据库那款谢源收费的小型数据库必然没有会生疏,不外虽然许多用户皆懂失若何运用MariaDB数据库,然而却也有很多用户没有知叙该若何装置MariaDB数据库。昨天小编便战各人分享高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-co妹妹on.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 su妹妹ary 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 数据库的要领了,有须要的用户便用那种要领停止装置吧。
相关文章