0

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?

Nico Haase
  • 11,420
  • 35
  • 43
  • 69
Prashanth RH
  • 43
  • 1
  • 1
  • 2

3 Answers3

3
  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.

Tushar_G
  • 300
  • 1
  • 9
  • I found path C:\Program Files (x86)\MySQL\MySQL Server 5.5 here MySQL Server 5.5 folder didn't exist at all... – Prashanth RH Jan 30 '17 at 09:35
  • change the default path of mysql server in xamp my.ini – Tushar_G Jan 30 '17 at 09:54
  • Its not only the path. But ports also were conflicting. I resolved. Thank-you.... – Prashanth RH Jan 30 '17 at 10:19
  • Thanks for this answer very very much. It helped me see that the path to MySQL service executable does not exist. I wonder why so but I will just uninstall the MySQL service and re-initialize the data directory with the --base-dir=path option set and re-install the service That should solve my case. Thanks again! – Michael Iyke Oct 12 '19 at 14:33
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.
user944105
  • 21
  • 1
1

I faced the same problem and solved it.

Just modify the registry editor value.

HKEY_LOCAL_MACHINE/SYSTEM/CurrentControlSet/Services/MySQL/ImagePath

enter image description here

4b0
  • 21,981
  • 30
  • 95
  • 142
Jackson90
  • 11
  • 1