当前位置:网站首页>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
边栏推荐
猜你喜欢

lnmp的配置

JVM——》常用命令

MapReduce压缩

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

Yarn core parameter configuration

Failureforwardurl and failureurl

Examination questions and answers of the third batch (main person in charge) of Guangdong safety officer a certificate in 2022

Sim Api User Guide(6)

Sim Api User Guide(4)

Solve the problem of installing VMware after uninstalling
随机推荐
997、有序数组的平方(数组)
Ansible cloud computing automation command line compact version
LeetCode 1249. Minimum remove to make valid parents - FB high frequency question 1
DBA常用SQL语句(4)- Top SQL
Arm debugging (1): two methods to redirect printf to serial port in keil
DBA common SQL statements (1) - overview information
杰理之系统事件有哪些【篇】
0704、ansible----01
Art template template engine
Configuration of LNMP
Common DBA SQL statements (4) - Top SQL
Chapter 3 enable and adjust the size of IM column storage (im-3.1)
2022年制冷与空调设备运行操作考试练习题及模拟考试
LeetCode 1249. Minimum Remove to Make Valid Parentheses - FB高频题1
通过流式数据集成实现数据价值(2)
Windows installs redis and sets the redis service to start automatically
杰理之有时候发现内存被篡改,但是没有造成异常,应该如何查找?【篇】
2022 mobile crane driver test question bank simulation test platform operation
中职网络安全2022国赛之CVE-2019-0708漏洞利用
2022年流动式起重机司机考试题库模拟考试平台操作