当前位置:网站首页>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
边栏推荐
- 定义链表(链表)
- 通过流式数据集成实现数据价值(4)-流数据管道
- 利用多线程按顺序连续输出abc10次
- Solution architect's small bag - 5 types of architecture diagrams
- [untitled]
- Sim Api User Guide(8)
- Go language practice mode - functional options pattern
- 203. Remove linked list elements (linked list)
- DBA常用SQL语句(6)- 日常管理
- What if Jerry's function to locate the corresponding address is not accurate sometimes? [chapter]
猜你喜欢
Examination questions and answers of the third batch (main person in charge) of Guangdong safety officer a certificate in 2022
shell脚本免交互
Sim Api User Guide(4)
mysql同一个表中相同数据怎么合并
0704、ansible----01
MapReduce计算流程详解
Custom login failure handling
Shell script interaction free
杰理之更准确地确定异常地址【篇】
2022年广东省安全员A证第三批(主要负责人)考试试题及答案
随机推荐
SQL tuning series - SQL performance methodology
997、有序数组的平方(数组)
DBA常用SQL语句(4)- Top SQL
MapReduce计算流程详解
Ansible playbook syntax and format automate cloud computing
Read LSTM (long short term memory)
0704、ansible----01
SQL tuning series - Introduction to SQL tuning
Sim Api User Guide(8)
通过流式数据集成实现数据价值(2)
Realize data value through streaming data integration (1)
19、删除链表的倒数第N个节点(链表)
第120章 SQL函数 ROUND
Yarn core parameter configuration
SQL调优系列文章之—SQL调优简介
Sim Api User Guide(6)
Go language practice mode - functional options pattern
Go语言实践模式 - 函数选项模式(Functional Options Pattern)
DBA常用SQL语句(3)- cache、undo、索引和等待事件
Function realization of printing page