Installing MySQL as a Windows Service

To install MySQL as a Windows service, follow these steps:

  1. Browse your MySQL bin folder (e.g. C:\Joget-DX8-Enterprise\mariadb-10.3.9-win32\bin) in your command prompt (Ensure to run as administrator).
  2. Execute the following:
    sc create MariaDB binpath= "C:/Joget-DX8-Enterprise/mariadb-10.3.9-win32/bin/mysqld --defaults-file=C:/Joget-DX7-Enterprise/mariadb-10.3.9-win32/my.ini" DisplayName= "MariaDB" start= "auto"
  3. You will get the following when the service is installed successfully.
    [SC] CreateService SUCCESS
  4. You may verify it by going to your Windows' List of Services.


By following these steps, you will have MySQL installed and configured to run as a Windows service, ensuring it starts automatically with your system.

Created by Julieth Last modified by Aadrian on Dec 13, 2024