【问题标题】:How to create a Windows service using sc MySQL如何使用 sc MySQL 创建 Windows 服务
【发布时间】:2018-10-02 03:51:08
【问题描述】:
我正在尝试为 MySQL 的第二个实例创建 Windows 服务,但我不知道出了什么问题。这是我的命令:
sc create mysqlxampp binPath= "C:\xampp\mysql\bin\mysqld" --defaults-file= "C:\xampp\mysql\bin\my.ini" mysqlxampp
【问题讨论】:
标签:
mysql
xampp
windows-services
mariadb
【解决方案1】:
sc delete MySQL56
sc create MySQL56 start= auto DisplayName= MySQL56 binPath= "\"C:\Program Files\MySQL\MySQL Server 5.6\bin\mysqld.exe\" --defaults-file=\"C:\ProgramData\MySQL\MySQL Server 5.6\my.ini\" MySQL56"