CentOS6.4安装MariaDB10.3
本文介绍如何使用yum在CentOS 6.4 安装 MariaDB 10.3
我们是于2013年成立的成都网站建设公司,提供网站建设,电商网站设计开发,外贸营销网站建设,响应式网页设计,微信小程序开发、等服务。为客户创造有价值的品牌营销体验,让互联网提升企业的竞争力!
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
网页名称:CentOS6.4安装MariaDB10.3
网站URL:http://azwzsj.com/article/ishcjs.html