The MySQL service failed to start, the service did not report any errors

The MySQL service failed to start, the service did not report any errors

insert image description here

The mysql service was fine yesterday, but it cannot be opened today. There is no problem with my.ini configuration and port. You can only back up the data of data, delete the data folder, and initialize mysqld.

insert image description here

Be sure to back up data data! ! !

mysqld --initialize --console

insert image description here

Copy the last initial password, start the service to log in to mysql, and change the password.

net start mysql
mysql -u root -p
ALTER USER 'root'@'localhost' IDENTIFIED BY '123456';

insert image description here

Guess you like

Origin blog.csdn.net/weixin_43912621/article/details/131995284