User Tools

Site Tools


servers:windows:mariadb

Information

MariaDB

12.3

Install Options

  • [x] MariaDB Server
    • [x] Database instance
    • [x] Client Programs
    • [x] Backup utilities
  • [ ] Development components
    • [ ] Client C API library (shared)
  • [ ] Third party tools
    • [ ] HeidiSQL
  • [x] Use UTF8 as default server's character set
  • [x] Install as service
  • [x] Enable networking

World of Warcraft

  • [x] Development components
    • [x] Client C API library (shared)
  • [ ] Install as service
  • [ ] Enable networking

SQLyog

  • MySQL Host Address: . 3)

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

  • :!: Change --password
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

  • Weekly (Sunday) 07:10:00 AM
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
/usr/local/www/wiki/data/pages/servers/windows/mariadb.txt · Last modified: by Sean Rhone