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.
Search for services.msc and look up through your services that are running if there is a mysql service running already other than the one you want to run (it could be xampp or wamp) or another service (for example Skype) using the same port as mysql and stop the service so you can run your mysql service.
This error happened in my case when secure-file-priv was pointing to unexistent folder, make sure it exists and readable.
The line of code example in my.ini:
secure-file-priv="D:/MySQL/uploads"
After installing it by
mysqld --install
. Try thismysqld --initialize
. We got the same problem but it's now working.Rename or delete the folder under,
folder name change as per your MYSQL version number.
In my case, I tried to open a DOS prompt and go to the MySQL
bin\
directory and issue the below command:And it shows me I was missing the
"C:\Program Files\MySQL\MySQL Server 5.0\Uploads"
folder; I built one and problem solved.