@echo off
echo Checking MySQL/MariaDB service status...
echo.

echo === Checking for MySQL services ===
sc query type= service state= all | findstr /i "mysql mariadb"
echo.

echo === Checking if MySQL is listening on port 3306 ===
netstat -an | findstr :3306
echo.

echo === Common MySQL service names ===
echo - MySQL
echo - MySQL80
echo - MySQL57
echo - MariaDB
echo.

echo To start a service, run as Administrator:
echo   net start [ServiceName]
echo.
echo Example:
echo   net start MySQL80
echo.

pause
