- Browse to your 在命令行中定位到您的 MySQL's bin folder 文件夹 (e.g. C:\Joget-v4-Enterprise-4.0.2\mysql-5.0.96-win32\bin) in your command prompt .
- Execute the following
执行以下语句.
Code Block mysqld --install
- You will get the following when service is installed successfully
看到以下提示代表服务已安装成功.
You may verify it by going to your Windows's List of ServicesCode Block Service successfully installed.
您可以在 Windows 服务列表中验证
You may encounter error 1067 while trying to start up the service. Possible reasons/solutions are当您启动服务时可能会遇到错误 1067. 可能的原因是:-
- Incorrect
错误的 basedir
value值.
Edit编辑 my.ini
to include full path to your MySQL folder填入完整的MySQL文件夹路径.
Code Block basedir="C:\Joget-v4-Enterprise-4.0.2\mysql-5.0.96-win32"
- Incorrect
错误的 my.ini
file loaded. Try to include the full path to the文件加载. 在创建的服务中试着填写完整的路径在 my.ini
file in creating Windows service文件中.
Code Block mysqld --install MySQL --defaults-file=C:\Joget-v4-Enterprise-4.0.2\mysql-5.0.96-win32\my.ini
For more information, please refer to 更多信息, 请参考 MySQL - Starting MySQL as a Windows Service