Table of Contents

Information

MariaDB

12.3

Install Options

World of Warcraft

SQLyog

Firewall

Delete Default Rule

"%SystemRoot%\System32\netsh.exe" advfirewall firewall delete rule name="MariaDB 12.3 (x64)"

Block

CD "%ProgramFiles%\MariaDB "*"\bin" && "%SystemRoot%\System32\netsh.exe" advfirewall firewall add rule name="MariaDB Server" dir="in" action="block" profile="any" program="%CD%\mysqld.exe"

Delete Rule

"%SystemRoot%\System32\netsh.exe" advfirewall firewall delete rule name="MariaDB Server"

Maintenance

Service

Create User

"%ProgramFiles%\MariaDB 12.3\bin\mariadb.exe" -u "root"
CREATE USER 'maintenance'@'localhost' IDENTIFIED BY 'x';
GRANT SELECT, INSERT ON *.* to 'maintenance'@'localhost';
FLUSH PRIVILEGES;EXIT;

Script

MKDIR "%SystemDrive%\www\scripts\mariadb" & "%SystemRoot%\System32\notepad.exe" "%SystemDrive%\www\scripts\mariadb\Maintenance.bat"
@echo off

TITLE MariaDB Maintenance
CD "%Temp%"

"%ProgramFiles%\MariaDB 12.3\bin\mariadb-check.exe" --user="maintenance" --password="x" -o -A -f -e --auto-repair

:: End
"%SystemDrive%\www\scripts\mariadb\Maintenance.bat"

Task Scheduler

SCHTASKS /Create /SC "WEEKLY" /D "SUN" /TN "DB Maintenance" /TR "%SystemDrive%\www\scripts\mariadb\Maintenance.bat" /ST "07:10" /F
2)
2026/02/27: 12.3 only with TC 3.3.5; other notes expect 12.2
3)
just a dot for socket connection on Windows; not localhost or 127.0.0.1