一、实验环境
1、虚拟机管理软件:VMware16
2、系统:CentOS 7
3、ssh软件:Xshell 7
4、数据库版本:mysql-5.7.27-1.el7.x86_64.rpm-bundle.tar
二、更改配置文件
前提:此时MySQL服务已经启动,若有密码可以进行正常的登录。
①更改 /etc/my.cnf 文件、在启动mysql时不启动 grant-tables 授权表:
在其中增加配置:skip-grant-tables
一、实验环境
1、虚拟机管理软件:VMware16
2、系统:CentOS 7
3、ssh软件:Xshell 7
4、数据库版本:mysql-5.7.27-1.el7.x86_64.rpm-bundle.tar
二、更改配置文件
前提:此时MySQL服务已经启动,若有密码可以进行正常的登录。
①更改 /etc/my.cnf 文件、在启动mysql时不启动 grant-tables 授权表:
在其中增加配置:skip-grant-tables