您好,登录后才能下订单哦!
本文介绍如何使用yum在CentOS 6.4 安装 MariaDB 10.3
1. 创建mysql组
groupadd mysql
2. 创建mysql用户并添加到mysql组
useradd -g mysql mysql
3.修改mysql密码
passwd mysql
4. 配置 MariaDB 10.3 yum
vi /etc/yum.repos.d/MariaDB.repo
# MariaDB 10.3 CentOS repository list - created 2018-06-01 02:02 UTC
# http://downloads.mariadb.org/mariadb/repositories/
[mariadb]
name = MariaDB
baseurl = http://yum.mariadb.org/10.3/centos6-amd64
gpgkey=https://yum.mariadb.org/RPM-GPG-KEY-MariaDB
gpgcheck=1
5. yum安装MariaDB
yum -y install MariaDB-server MariaDB-client
安装结果如下:
Installed:
MariaDB-client.x86_64 0:10.3.7-1.el6
MariaDB-compat.x86_64 0:10.3.7-1.el6
MariaDB-server.x86_64 0:10.3.7-1.el6
Dependency Installed:
MariaDB-common.x86_64 0:10.3.7-1.el6
boost-program-options.x86_64 0:1.41.0-28.el6
galera.x86_64 0:25.3.23-1.rhel6.el6
libaio.x86_64 0:0.3.107-10.el6
lsof.x86_64 0:4.82-5.el6
make.x86_64 1:3.81-23.el6
perl.x86_64 4:5.10.1-144.el6
perl-DBI.x86_64 0:1.609-4.el6
perl-Module-Pluggable.x86_64 1:3.90-144.el6
perl-Pod-Escapes.x86_64 1:1.04-144.el6
perl-Pod-Simple.x86_64 1:3.13-144.el6
perl-libs.x86_64 4:5.10.1-144.el6
perl-version.x86_64 3:0.77-144.el6
rsync.x86_64 0:3.0.6-12.el6
Dependency Updated:
openssl.x86_64 0:1.0.1e-57.el6
Replaced:
mysql-libs.x86_64 0:5.1.66-2.el6_3
Complete!
6. 修改MariaDB数据库root密码
mysqladmin -u root password "123456"
7. 启动/停止/重启 MariaDB服务命令
sudo -u mysql service mysql start|stop|restart
免责声明:本站发布的内容(图片、视频和文字)以原创、转载和分享为主,文章观点不代表本网站立场,如果涉及侵权请联系站长邮箱:is@yisu.com进行举报,并提供相关证据,一经查实,将立刻删除涉嫌侵权内容。