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.
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.
mysqld --initialize
Run the above after the install command. Then try to start the service - that should work.
I had this issue after my database was working fine for long time. It turned out it was some data corruption.
In the error log I had:
Then I had to delete the 2 ib_logfile* files, and it restarted again.
Using Community 8.0.17, upgraded from 8.0.16
There may be a more secure way of doing this, but since I'm just running a dev box:
you should see all of the required data file structures in the data folder now. If they are not created, the mysqld process has contention or improper security to write into the folder correctly.
Now start your named service in whatever fashion you want (SC/NET/service.msc, etc)
Assuming all of the files were created properly by --initialize the service will start.
Nothing was working for me but then I checked here. I ran that command
qc sc mysql57
and copied the value ofBINARY_PATH_NAME
from it. After that I checked this and changed the value oflower_case_table_names
from 0 to 2 inmy.ini
file. Then in the command prompt, I ran this command -<< BINARY_PATH_NAME >> --install-manual
. After that, I started the MySQL57 service and it worked.If using version 8 and you edit the my.ini I found that Notepad is putting 3 hex characters at the beginning of the my.ini file. EF BB BF. Deleting the 3 characters from the beginning of the file in a hex editor fixes the problem.
In version 8 they are accidentally putting Unicode characters in the ini file. This is causing Notepad to save the file with Byte order mark characters.
The following line in the file is the culprit "The line # range from 1 to 2^32 − 1. “Unique” means that each ID must be different." has 3 Unicode characters. This is causing notepad to append the byte order mark to the text file.