当前位置:网站首页>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
边栏推荐
- 杰理之更准确地确定异常地址【篇】
- Jerry's users how to handle events in the simplest way [chapter]
- Sim Api User Guide(8)
- 0704、ansible----01
- Realize data value through streaming data integration (3) - real-time continuous data collection
- Ansible playbook syntax and format automate cloud computing
- Juc并发编程09——Condition实现源码分析
- DBA常用SQL语句 (5) - Latch 相关
- Realize data value through streaming data integration (2)
- 997. Square of ordered array (array)
猜你喜欢
随机推荐
Yarn core parameter configuration
Sim Api User Guide(8)
Sim Api User Guide(4)
《Redis设计与实现》
Chapter 1 Oracle database in memory related concepts (im-1.1)
第一章 Oracle Database In-Memory 相关概念(续)(IM-1.2)
ansible playbook语法和格式 自动化云计算
The central control learning infrared remote control module supports network and serial port control
Realizing data value through streaming data integration (5) - stream processing
LeetCode 1249. Minimum remove to make valid parents - FB high frequency question 1
209、长度最小的子数组(数组)
Chapter I Oracle database in memory related concepts (Continued) (im-1.2)
DBA常用SQL语句(3)- cache、undo、索引和等待事件
206、反转链表(链表)
Longest common front string
Understand the new economic model of platofarm and its ecological progress
一文读懂PlatoFarm新经济模型以及生态进展
Read LSTM (long short term memory)
杰理之通常程序异常情况有哪些?【篇】
通过流式数据集成实现数据价值(2)