当前位置:网站首页>mysql5.7版本在配置文件my.ini[mysqld]加上skip-grant-tables后无法启动
mysql5.7版本在配置文件my.ini[mysqld]加上skip-grant-tables后无法启动
2022-06-25 22:06:00 【彼岸的饭碗】
环境
windows10 mysql-5.7
前言
本人苦苦寻找了两天时间,来寻求解决无法登录的方法。终于在该博客的评论中找到了相对应的解决方法。
[https://blog.csdn.net/q283614346/article/details/90732968]
在此向该播主表示深深的感谢。
方法
废话少说直接上方法。
1.先使用管理员身份打开两个cmd窗口。

2.在其中一个窗口中输入net stop mysql暂停服务。

3.继续在该窗口中输入mysqld --console --skip-grant-tables --shared-memory

4.在另一个窗口中输入mysql -uroot -p

在要求输入密码的地方按回车键自动登录。
5.修改密码
在mysql>后方输入set password for 用户名@localhost = password(‘新密码’);可能会出现以下错误。
给出以下解决方法。
5.1输入flush privileges;
千万不要忘记后面的分号。
成功的话会出现这个
5.2再次输入set password for 用户名@localhost = password(‘新密码’);
同样不要忘记加分号。
okkk 大功告成。!!!!!!!!!!!
边栏推荐
- Today's 61 Fu
- Record the ideas and precautions for QT to output a small number of pictures to mp4
- phoenix索引
- Architecture part -- the use of UMI framework and DVA
- How does excel translate Chinese words into English automatically? This formula teaches you
- 如何进行流程创新,以最经济的方式提升产品体验?
- hiberate架构介绍及环境搭建(非常详细)
- Summary of common JDBC exceptions and error solutions
- Hibernate core api/ configuration file / L1 cache details
- 数据同步
猜你喜欢

产品经理如何把控产品开发的进度

森林的先序和中序遍历

Reprint: detailed explanation of qtablewidget (style, right-click menu, header collapse, multiple selection, etc.)

C# IO Stream 流(二)扩展类_封装器

经典图像分割网络:Unet 支持libtorch部署推理【附代码】

hiberate核心API/配置文件/一级缓存详解

一文讲透研发效能!您关心的问题都在

Leetcode 513. 找树左下角的值

UE4 learning records create a role and control its movement

hiberate实体类CURD、事务操作汇总
随机推荐
QT Chinese and English use different fonts respectively
STL教程5-STL基本概念及String和vector使用
C. Planar Reflections-CodeCraft-21 and Codeforces Round #711 (Div. 2)
Online customer service - charging standards and service provision of third parties
hiberate核心API/配置文件/一级缓存详解
MySQL InnoDB锁知识点
提取系统apk
My vscode
idea Kotlin版本升级
Analysis on the control condition and mode of go cooperation overtime exit
解析产品开发失败的5个根本原因
期末复习【机器学习】
go中全类型等值判断解析&综合汇总
发送邮件工具类
Uniapp -- the use of document collation and push of unipush
关于go协程超时退出控制条件与方式分析
C. Yet Another Card Deck-Educational Codeforces Round 107 (Rated for Div. 2)
先序线索二叉树
Ad20 learning notes II
关于Swoole协程容器