标签:comm win img 初始密码 basedir mysql8 安装 ima mys
https://downloads.mysql.com/archives/community/
[mysqld]
basedir=C:\\mysql-8.0.19-winx64
datadir=C:\\mysql-8.0.19-winx64\\data
default_authentication_plugin=mysql_native_password
cd C:\mysql-8.0.19-winx64\bin
mysqld --initialize
mysqld --install mysql8.0
net start mysql8.0
mysql -u root -p
修改密码为fuck, 记得末尾加分号
更改加密规则让Navicat12可以连接
mysql -uroot -ppassword #登录
use mysql; #选择数据库
ALTER USER ‘root‘@‘localhost‘ IDENTIFIED BY ‘fuck‘ PASSWORD EXPIRE NEVER; #更改加密方式
ALTER USER ‘root‘@‘localhost‘ IDENTIFIED WITH mysql_native_password BY ‘fuck‘; #更新用户密码
FLUSH PRIVILEGES; #刷新权限
net stop mysql8.0
net start mysql8.0
标签:comm win img 初始密码 basedir mysql8 安装 ima mys
原文地址:https://www.cnblogs.com/trykle/p/13335770.html