MySQL 5.7安装(linux)

https://blog.csdn.net/li_Dijkstra/article/details/79354385

https://blog.csdn.net/li_Dijkstra/article/details/79354385

1.找不到初始密码可以在my.ini中[mysqld] 添加:

skip-grant-tables

2.修改MySQL数据库配置文件无密码登录后,修改密码报错:

ERROR 1290 (HY000): The MySQL server is running with the --skip-grant-tables option so it cannot execute this statement

3.先执行:

flush privileges;

4.再执行修改密码命令,可以了:

set password for root@localhost=password('你的密码');

配置root远程登陆:

use mysql;

UPDATE user SET Host='%' WHERE User='root';

flush privileges;

8.0

使用sqlyog等工具链接,需要开启原来的身份验证机制

ALTER USER 'root'@'%' IDENTIFIED WITH mysql_native_password BY 'root账户密码';



原文地址:https://www.cnblogs.com/nxzblogs/p/10833159.html