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

CentOS7 MariaDB10

时间:2015-02-08 06:43:20      阅读:289      评论:0      收藏:0      [点我收藏+]

标签:

添加 yum 数据源:

https://downloads.mariadb.org/mariadb/repositories/

选择后生成:

# MariaDB 10.0 CentOS repository list - created 2015-02-07 18:49 UTC
# http://mariadb.org/mariadb/repositories/
[mariadb]
name = MariaDB
baseurl = http://yum.mariadb.org/10.0/centos7-amd64
gpgkey=https://yum.mariadb.org/RPM-GPG-KEY-MariaDB
gpgcheck=1

添加到源中去

$ sudo emacs -nw /etc/yum.repos.d/MariaDB.repo

# MariaDB 10.0 CentOS repository list - created 2015-02-07 18:49 UTC
# http://mariadb.org/mariadb/repositories/
[mariadb]
name = MariaDB
baseurl = http://yum.mariadb.org/10.0/centos7-amd64
gpgkey=https://yum.mariadb.org/RPM-GPG-KEY-MariaDB
gpgcheck=1

C-x-s #保存
C-x-c #退出Eamcs


$ sudo yum install MariaDB-server MariaDB-client #安装MariaDB

$ sudo service mysql start #启动MariaDB数据库

$ sudo mysqladmin -u root password ‘yourpassword‘#修改root密码

$ mysql -u root -p #打开数据库

CentOS7 MariaDB10

标签:

原文地址:http://www.cnblogs.com/coreybrans/p/4279628.html

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