1.1 安装 mysql
下载mysql源安装包
[root@ecs-5ded ~]# wget https://dev.mysql.com/get/mysql57-community-release-el7-11.noarch.rpm
安装mysql源
[root@ecs-5ded ~]# yum -y localinstall mysql57-community-release-el7-11.noarch.rpm
在线安装Mysql
[root@ecs-5ded ~]# yum -y install mysql-community-server
1.2 启动Mysql服务
[root@ecs-5ded ~]# systemctl start mysqld
设置开机启动
[root@ecs-5ded ~]# systemctl enable mysqld
[root@ecs-5ded ~]# systemctl daemon-reload
1.3 配置编码
修改/etc/my.cnf配置文件,在[mysqld]下添加UTF-8编码配置,如下所示:
编辑保存完 重启mysql服务:
[root@ecs-5ded ~]# systemctl restart mysqld
修改初始密码
https://www.cnblogs.com/clerck/p/14009431.html
Navicat链接不上
https://blog.csdn.net/bingjianit/article/details/54384299
密码过期或者过于简单