Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

the MySQL service on local computer started and then stopped

the MySQL service on local computer started and then stopped. Some services stop automatically if they are not in use by other services or programs.

Can anyone resolve this issue? Thanks.

like image 764
Kem Bardly Avatar asked Feb 27 '16 14:02

Kem Bardly


People also ask

Why does MySQL service stop automatically in Windows server?

Certain versions of MySQL add invalid hex values at the beginning of the my. ini configuration file. Deleting the first three hex values using a hex editor should resolve this issue.

Why MySQL service is not starting?

Even with correct ownership, MySQL might fail to start up if there is other security software running on your system that manages application access to various parts of the file system. In this case, reconfigure that software to enable mysqld to access the directories it uses during normal operation.

Why does MySQL stop?

the MySQL service on local computer started and then stopped. Some services stop automatically if they are not in use by other services or programs.

How do I fix Windows could not start MySQL service on local computer?

You can check this by locating the my. ini file, located in your Windows installation directory (by default C:\Windows\) and opening it up in a text editor to verify that there are no duplicate entries. If there are, delete the duplicated entry and attempt to start the MySQL service again.


1 Answers

After installing it by mysqld --install. Try this mysqld --initialize. We got the same problem but it's now working.

like image 198
Alexa Avatar answered Sep 28 '22 03:09

Alexa