User Tools

Site Tools


servers:windows:mariadb

This is an old revision of the document!


Information

  • MariaDB Server

MariaDB

12.2

  • Last tested: mariadb-12.2.1-winx64.msi
  • 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

World of Warcraft

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

SQLyog

  • MySQL Host Address: . 1)

Firewall

"netsh.exe" advfirewall firewall delete rule name="MariaDB 12.2 (x64)"
CD "%ProgramFiles%\MariaDB "*"\bin" && "netsh.exe" advfirewall firewall add rule name="MariaDB Server" dir="in" action="block" profile="any" program="%CD%\mysqld.exe"
"netsh.exe" advfirewall firewall delete rule name="MariaDB Server"

Delete Rule

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

Maintenance

Service

Create User

"%ProgramFiles%\MariaDB 12.2\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 --password
MKDIR "%SystemDrive%\www\scripts\mariadb"
"notepad.exe" "%SystemDrive%\www\scripts\mariadb\Maintenance.bat"
@echo off

TITLE MariaDB Maintenance
CD "%Temp%"

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

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

Task Scheduler

taskschd.msc

Maintenance

  • Weekly → Recur every 1 weeks on Sunday
  • 07:10:00 AM
DB Maintenance
"%SystemDrive%\www\scripts\mariadb\Maintenance.bat"
SCHTASKS /Create /SC "WEEKLY" /D "SUN" /TN "DB Maintenance" /TR "%SystemDrive%\www\scripts\mariadb\Maintenance.bat" /ST "07:10" /F

One-shot

"%ProgramFiles%\MariaDB 12.2\bin\mariadbd.exe" --defaults-file="%ProgramFiles%\MariaDB 12.2\data\my.ini"
"%ProgramFiles%\MariaDB 12.2\bin\mariadb-check.exe" -u "root" -p -o -A -f -e --auto-repair

TODOs

auth File

1)
just a dot for socket connection on Windows; not localhost or 127.0.0.1
/usr/local/www/wiki/data/attic/servers/windows/mariadb.1768665076.txt.gz · Last modified: by Sean Rhone