linux中利用yum 安装 MariaDB 数据库步骤
2019/10/10/17:45:22 阅读:1747 来源:谷歌SEO算法 标签:
搜索引擎
MariaDB数据库是一款开源免费的小型数据库了,MariaDB是由前mysql数据库开发团队做的,因为mysql已经被收藏了,下面我们就来看看yum 安装 MariaDB 数据库的步骤,希望文章对各位有帮助.
准备yum一个lamp环境,发现yum版本的mysql居然依然是5.1.x的版本,因此准备更换为MariaDB.
配置源:
- [root@localhost~]#cat/etc/yum.repos.d/MariaDB.repo
- #MariaDB10.0CentOSrepositorylist-created2013-08-2313:08UTC
- #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~]#yumsearchmariadb
- Loadedplugins:fastestmirror
- Loadingmirrorspeedsfromcachedhostfile
- *base:ftp.sjtu.edu.cn
- *extras:mirrors.aliyun.com
- *updates:mirrors.aliyun.com
- =======================================================N/SMatched:mariadb========================================================
- MariaDB-Galera-server.x86_64:MariaDB:averyfastandrobustSQLdatabaseserver
- MariaDB-Galera-test.x86_64:MariaDB:averyfastandrobustSQLdatabaseserver
- MariaDB-cassandra-engine.x86_64:MariaDB:averyfastandrobustSQLdatabaseserver
- MariaDB-client.x86_64:MariaDB:averyfastandrobustSQLdatabaseserver
- MariaDB-common.x86_64:MariaDB:averyfastandrobustSQLdatabaseserver
- MariaDB-compat.x86_64:MariaDB:averyfastandrobustSQLdatabaseserver
- MariaDB-connect-engine.x86_64:MariaDB:averyfastandrobustSQLdatabaseserver
- MariaDB-devel.x86_64:MariaDB:averyfastandrobustSQLdatabaseserver
- MariaDB-oqgraph-engine.x86_64:MariaDB:averyfastandrobustSQLdatabaseserver
- MariaDB-server.x86_64:MariaDB:averyfastandrobustSQLdatabaseserver
- MariaDB-shared.x86_64:MariaDB:averyfastandrobustSQLdatabaseserver
- MariaDB-test.x86_64:MariaDB:averyfastandrobustSQLdatabaseserver//phpfensi.com
- Nameandsummarymatchesonly,use"searchall"foreverything.
安装database:
[root@localhost ~]# yum install MariaDB-server MariaDB-client
[root@localhost ~]# yum install MariaDB-*
运行database:
- [root@localhost~]#/etc/init.d/mysqlstart
- StartingMySQL.SUCCESS!
- [root@localhost~]#mysql-V
- mysqlVer15.1Distrib10.0.17-MariaDB,forLinux(x86_64)usingreadline5.1
热门评论