1. yum install community-mysql-server
2. systemctl start mysqld.service
3. 配置root
mysql_secure_installation
4. 创建一个新库
create database django default character set utf8;
5. 创建用户
insert into mysql.user(Host,User,Password) values(“localhost”,”demonk”,password(“12345678”));
6. 重启服务
7. 权限
grant all privileges on django.* to demonk@localhost identified by ‘12345678’;
8.