mysql 8.0.11 修改密码

进入mysql子目录bin
依次输入:mysqld --install (安装) mysqld --initialize (初始化)net start mysql(运行)

mysql 启不来
sc query mysql
sc delete mysql    


登陆数据库:
mysql -u root -p

修改密码:
update user set authentication_string=password('123') where user = 'root';

刷新:
flush privileges;
关闭:
quit;

猜你喜欢

转载自blog.csdn.net/qualcommbrerw/article/details/81450380