Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Mysql service is missing

Tags:

mysql

service

I have installed Mysql server locally and everything was working Ok but today when I tried to get a connection to the local db, I got an error. After checking services showed that the MySql service is missing...

What can the problem be?

Thanks in advance for any helps

like image 806
Igal Avatar asked Apr 15 '11 15:04

Igal


People also ask

Where is the MySQL service?

The default data directory location is C:\Program Files\MySQL\MySQL Server 8.0\data , or C:\ProgramData\Mysql on Windows 7 and Windows Server 2008. The C:\ProgramData directory is hidden by default.

How do I download MySQL services?

To download MySQL installer, go to the following link http://dev.mysql.com/downloads/installer/. There are two installer files: If you are connecting to the internet while installing MySQL, you can choose the online installation version mysql-installer-web-community-<version>.exe .


2 Answers

I have done it by the following way

  1. Start cmd
  2. Go to the "C:\Program Files\MySQL\MySQL Server 5.6\bin"
  3. type mysqld --install

Like the following image. See for more information.

enter image description here

like image 105
Atish Dipongkor Avatar answered Sep 23 '22 14:09

Atish Dipongkor


Go to your mysql bin directory and install mysql service again:

c: cd \mysql\bin mysqld-nt.exe --install 

or if mysqld-nt.exe is missing (depending on version):

mysqld.exe --install 

Then go to services, start the service and set it to automatic start.

like image 36
NickSoft Avatar answered Sep 24 '22 14:09

NickSoft