Start MySQL Server as a service (Win 8)

前端 未结 4 1359
难免孤独
难免孤独 2020-12-28 10:01

I am trying out MySQL (Windows 8), with the workbench (gui) installed as well.

I am still in the installation / configuration process. I would like to create a new

4条回答
  •  春和景丽
    2020-12-28 10:53

    Type cmd in start and right click and Run as administrator,

    then paste the below text in your command prompt,

    "C:\Program Files (x86)\MySQL\MySQL Server 5.1\bin\mysqld" --install
    

    If you don't run cmd as Administrator, you'll see Install/Remove of service denied.,

    So run the elevated command prompt(Start->cmd->Run as Administrator) to see the Service Successfully installed message.

    Service Denied Screenshot

    Note: This is even if you have logged in as administrator in windows 7/8.

    If u want to uninstall the service do the following, copy paste the following in command prompt(again elevated command prompt) run this,

    sc delete MySQL

    Here MySQL in the command is the service name mysql creates by default in Windows PC. Make sure you see the service is installed in the Services List(Task Manager -> Services Tab -> Check the Mysql service Name column).

    Service delete command prompt screenshot

提交回复
热议问题