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

Install MySQL (MariaDB)

时间:2019-11-23 18:10:00      阅读:57      评论:0      收藏:0      [点我收藏+]

标签:restart   flush   ges   har   prompt   out   secure   set   setting   

yum install mariadb-server mariadb
systemctl start mariadb
mysql_secure_installation

mysql_secure_installation prompts:
Enter current password for root (enter for none):
OK, successfully used password, moving on...

Setting the root password ensures that nobody can log into the MariaDB
root user without the proper authorisation.

New password: password
Re-enter new password: password
Password updated successfully!
Reloading privilege tables..
... Success!

systemctl enable mariadb

/etc/my.cnf

[client]
default-character-set=utf8
[mysqld]
character-set-server=utf8
collation-server=utf8_general_ci

systemctl restart mariadb

create database imoocc;
grant all on imoocc.* to imoocc@'%' identified by '123456';
flush privileges;

Install MySQL (MariaDB)

标签:restart   flush   ges   har   prompt   out   secure   set   setting   

原文地址:https://www.cnblogs.com/anyux/p/11918896.html

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