User Tools

Site Tools


servers:windows:mariadb

This is an old revision of the document!


Information

  • MariaDB Server

MariaDB

  • No Development components or Third party tools
  • Use UTF8 as default server's character set

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

TrinityCore

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

Firewall

DIR "%ProgramFiles%\MariaDB 12.1\bin\mariadbd.exe" && "netsh.exe" advfirewall firewall add rule name="MariaDB Server" dir="in" action="block" profile="any" program="%ProgramFiles%\MariaDB 12.1\bin\mariadbd.exe"

Delete Rule

"netsh.exe" advfirewall firewall delete rule name="MariaDB Server"

Maintenance

Create User

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

Script

  • :!: Change -p password
MKDIR "%SystemDrive%\www\scripts\mariadb"
"notepad.exe" "%SystemDrive%\www\scripts\mariadb\Maintenance.bat"
@echo off

"%ProgramFiles%\MariaDB 12.1\bin\mariadb-check.exe" -u"maintenance" -p"x" -o -A -f -e --auto-repair

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

Task Scheduler

taskschd.msc

Update

  • 02:00:00 AM daily
  • TODO: Password file/scripting
DB Maintenance
"%SystemDrive%\www\scripts\mariadb\Maintenance.bat"

localhost One-shot

"%ProgramFiles%\MariaDB 12.1\bin\mariadbd.exe" --defaults-file="%ProgramFiles%\MariaDB 12.1\data\my.ini"
"%ProgramFiles%\MariaDB 12.1\bin\mariadb-check.exe" -u "root" -p -o -A -f -e --auto-repair
1)
2025/09/26: mariadb-12.2.0-winx64.msi fails to install
/var/www/wiki/data/attic/servers/windows/mariadb.1759449017.txt.gz · Last modified: by Sean Rhone

Except where otherwise noted, content on this wiki is licensed under the following license: CC0 1.0 Universal
CC0 1.0 Universal Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki