当前位置:网站首页>Net start MySQL MySQL service is starting MySQL service failed to start. The service did not report any errors.
Net start MySQL MySQL service is starting MySQL service failed to start. The service did not report any errors.
2022-04-23 10:16:00 【Popuessing's Jersey】
When starting a project , I found that the items that I could run yesterday can't run today . It turned out to be mysql There is a problem with the database , The remote database is not connected . How can this be done ? Start in admin mode dos, Input net start mysql:
Problems arise :MySQL The service is starting . MySQL Service failed to start . The service did not report any errors .
What's going on ?

mysql Whether to install
First check mysql Version of :
mysql -V
![]()
No problem .
Check environment variables
Then check the configuration of environment variables , Because it was still running yesterday , Therefore, it should not be the problem of environment variable configuration .
System variables :

User environment variable :

Sure enough , The configuration variables of the environment are normal .
At this point, no problem was found , Can't this problem really be solved ? Of course not.
Inspection services
Enter your own mysql Of bin The installation directory of the file :
My catalogue is :

At present bin Directory execution :
mysqld --remove
mysqld --install
mysqld --remove The command will replace the installed mysql Service uninstallation
mysqld --install Command to reinstall the service
Restart mysql service
net start mysql
I solved it at this point ,mysql The service can be started successfully .
Sign in mysql, There are new problems :

ERROR 1045 (28000): Access denied for user 'root'@'localhost' (using password: YES)
This means that the login password is wrong
I don't know what to do with the password ?
Of course, there are ways . We can solve this problem by forcibly changing the password
1、 Open with super administrator cmd, Close the service
net stop mysql
2、 Skip permission validation login mysql
mysqld --shared-memory --skip-grant-tables
3、 restart mysql service , Sign in mysql
net start mysql
mysql -u root -p
4、 Switch to mysql, Leave the password blank .
use mysql;
update user set authentication_string='' where user='root';
flush privileges;
5、 Set encryption rules and update new password (‘’newpassword‘’ It's your new password )
alter user 'root'@'localhost' identified by 'newpassword';
grant all privileges on *.* to "root"@'localhost';
flush privileges;
According to the changed new password Log back in mysql that will do .
thus , The problem that bothered me for several days has finally been solved .
版权声明
本文为[Popuessing's Jersey]所创,转载请带上原文链接,感谢
https://yzsam.com/2022/04/202204231011140311.html
边栏推荐
- Six practices of Windows operating system security attack and defense
- 第二章 In-Memory 体系结构 (IM-2.2)
- ansible playbook语法和格式 自动化云计算
- 101. Symmetric Tree
- Sim Api User Guide(8)
- 转:毛姆:阅读是一座随身携带的避难所
- Jerry's more accurate determination of abnormal address [chapter]
- Sim Api User Guide(7)
- Can Jerry's AES 256bit [chapter]
- 2022 mobile crane driver test question bank simulation test platform operation
猜你喜欢

解决VMware卸载后再安装出现的问题
MapReduce core and foundation demo

Yarn resource scheduler

net start mysql MySQL 服务正在启动 . MySQL 服务无法启动。 服务没有报告任何错误。

Arm debugging (1): two methods to redirect printf to serial port in keil

深度选择器

Yarn core parameter configuration

Configuration of LNMP

中职网络安全2022国赛之CVE-2019-0708漏洞利用

【省选联考 2022 D2T1】卡牌(状态压缩 DP,FWT卷积)
随机推荐
209、长度最小的子数组(数组)
JVM——》常用命令
Initial exploration of NVIDIA's latest 3D reconstruction technology instant NGP
基于PyQt5实现弹出任务进度条功能示例
Can Jerry's AES 256bit [chapter]
LeetCode 1249. Minimum Remove to Make Valid Parentheses - FB高频题1
142、环形链表||
ansible 云计算 自动化
2022年流动式起重机司机考试题库模拟考试平台操作
Examination questions and answers of the third batch (main person in charge) of Guangdong safety officer a certificate in 2022
C语言——自定义类型
第一章 Oracle Database In-Memory 相关概念(IM-1.1)
Detailed explanation of MapReduce calculation process
Solution architect's small bag - 5 types of architecture diagrams
Go language practice mode - functional options pattern
Chapter II in memory architecture (im-2.2)
Redis design and Implementation
ARM调试(1):两种在keil中实现printf重定向到串口的方法
二叉树的构建和遍历
101. Symmetric Tree