@echo off
echo Starting MySQL/MariaDB service...

REM Try to start MySQL service
net start MySQL
if %errorlevel% equ 0 (
    echo MySQL service started successfully!
    goto :end
)

REM Try to start MySQL80 service
net start MySQL80
if %errorlevel% equ 0 (
    echo MySQL80 service started successfully!
    goto :end
)

REM Try to start MariaDB service
net start MariaDB
if %errorlevel% equ 0 (
    echo MariaDB service started successfully!
    goto :end
)

echo.
echo Could not start MySQL/MariaDB service.
echo Please check:
echo 1. MySQL/MariaDB is installed
echo 2. You're running this as Administrator
echo 3. The service name is correct
echo.
echo To check installed services, run: sc query type= service state= all | findstr MySQL
echo.

:end
pause
