windows could not start the MySQL. service on local computer. Error 2 : The system cannot find the file specified

人走茶凉 提交于 2020-12-16 06:16:35

问题


I am not able to start the MySQL server on my Windows system. When I tried in services.msc to run, I got this error:

Screenshot

Starting it through the XAMPP control panel does not work either:

Screenshot

Can you help me to solve this?


回答1:


  1. Open windows services (Start->run ->Services.MSC)
  2. Find service with name "Mysql Server" and check path, it should be something like that:

"C:\Program Files (x86)\Parallels\Plesk\Databases\MySQL51\bin\mysqld.exe" "--defaults-file=C:\Program Files (x86)\Parallels\Plesk\Databases\MySQL\Data\my.ini" MySQL

  1. Make sure that Mysql folder and executable file mentioned above exist by this path.

OR

Sometimes the file name of mysqld-nt.exe renamed to mysqld-nt.exe~ so rename it back to its original name and this may solve the problem.




回答2:


  1. Go to the path: C:Programs Files\MariaDB 10.2\data..
  2. Lookout for my.ini file. Open the file and check the path for "datadir".
  3. If that does not match to your installed directory then update it.
  4. Your problem will be solved for sure.


来源:https://stackoverflow.com/questions/41932056/windows-could-not-start-the-mysql-service-on-local-computer-error-2-the-syst

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!