centos7安装配置mariadb
首页 > IT > CentOS   作者:eehello  2019年5月29日 20:57 星期三  浏览:4730  字号:   评论:0 条
时间:2019-5-29 20:57   浏览:4730  评论:0 条 


来自网络搜集


centos 7 mariadb安装

1、安装MariaDB


安装命令

yum -y install mariadb mariadb-server


安装完成MariaDB,首先启动MariaDB

systemctl start mariadb


设置开机启动

systemctl enable mariadb


接下来进行MariaDB的相关简单配置

mysql_secure_installation


首先是设置密码,会提示先输入密码

Enter current password for root (enter for none):<–初次运行直接回车


设置密码

Set root password? [Y/n] <– 是否设置root用户密码,输入y并回车或直接回车

New password: <– 设置root用户的密码

Re-enter new password: <– 再输入一次你设置的密码


其他配置


Remove anonymous users? [Y/n] <– 是否删除匿名用户,回车


Disallow root login remotely? [Y/n] <–是否禁止root远程登录,回车,


Remove test database and access to it? [Y/n] <– 是否删除test数据库,回车


Reload privilege tables now? [Y/n] <– 是否重新加载权限表,回车


初始化MariaDB完成,接下来测试登录


mysql -uroot -ppassword

完成。


 您阅读这篇文章共花了: 
 本文没有标签!
二维码加载中...
本文作者:eehello      文章标题: centos7安装配置mariadb
本文地址:https://www.eehello.com/?post=248
版权声明:若无注明,本文皆为“点滴记忆---观雨亭”原创,转载请保留文章出处。

返回顶部| 首页| 手气不错| 留言板|后花园

Copyright © 2014-2023 点滴记忆---观雨亭