本文介绍如何使用yum在Centos 6.4 安装 MariaDB 10.31. 创建Mysql组groupadd mysql2. 创建mysql用户并添加到mysql组useradd -g mysql m
本文介绍如何使用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
--结束END--
本文标题: CentOS 6.4 安装 MariaDB 10.3
本文链接: https://lsjlt.com/news/37256.html(转载时请注明来源链接)
有问题或投稿请发送至: 邮箱/279061341@qq.com QQ/279061341
2024-10-23
2024-10-22
2024-10-22
2024-10-22
2024-10-22
2024-10-22
2024-10-22
2024-10-22
2024-10-22
2024-10-22
回答
回答
回答
回答
回答
回答
回答
回答
回答
回答
0