mysqld: Can't change dir to data. Server doesn't start

后端 未结 14 1320
失恋的感觉
失恋的感觉 2020-12-07 13:16

I installed a MySQL server with installer and it started. After reboot I tried to start it again and get the error:

D:\\Program Files\\MySQL\\MySQL Server 5.         


        
14条回答
  •  情话喂你
    2020-12-07 13:29

    If you installed MySQL Server using the Windows installer and as a Window's service, then you can start MySQL Server using PowerShell and experience the convenience of not leaving the command line.

    Open PowerShell and run the following command:

    Get-Service *sql*
    

    A list of MySQL services will be retrieved and displayed. Choose the one that you want and run the following command while replacing service-name with the actual service name:

    Start-Service -Name service-name
    

    Done. You can check that the service is running by running the command Get-Service *sql* again and checking the status of the service.

提交回复
热议问题