Both sides previous revisionPrevious revisionNext revision | Previous revision |
servers:windows:mariadb [2025/06/11 03:55] – Sean Rhone | servers:windows:mariadb [2025/08/25 10:18] (current) – mariadb-12.1.1-winx64.msi Sean Rhone |
---|
| |
* MariaDB Server | * MariaDB Server |
* [[windows:10|Windows 10 (21H2)]] ([[windows;10_ltsc_server|Server]]) | |
| ===== Prerequisites ===== |
| |
| * [[windows;10|Windows 10 (21H2)]] |
| |
====== MariaDB ====== | ====== MariaDB ====== |
* http://downloads.mariadb.org/mariadb/12.0.1/ | * http://downloads.mariadb.org/mariadb/12.0.1/ |
* https://downloads.mariadb.org/rest-api/mariadb/ | * https://downloads.mariadb.org/rest-api/mariadb/ |
* Last tested: ''mariadb-12.0.1-winx64.msi'' | * Last tested: ''mariadb-12.1.1-winx64.msi'' |
| |
* No Development components or Third party tools | * No Development components or Third party tools |
* ''[ ]'' Enable networking | * ''[ ]'' Enable networking |
| |
====== Server ====== | ====== Firewall ====== |
| |
**** | DIR "%ProgramFiles%\MariaDB 12.1\bin\mariadbd.exe" |
| |
"%ProgramFiles%\MariaDB 12.0\bin\mariadbd.exe" --defaults-file="%ProgramFiles%\MariaDB 12.0\data\my.ini" | "netsh.exe" advfirewall firewall add rule name="MariaDB Server" dir="in" action="block" profile="any" program="%ProgramFiles%\MariaDB 12.1\bin\mariadbd.exe" |
| |
====== Firewall ====== | ===== Delete Rule ===== |
| |
"netsh.exe" advfirewall firewall add rule name="MariaDB Server" dir="in" action="block" profile="any" program="%ProgramFiles%\MariaDB 12.0\bin\mariadbd.exe" | **** |
| |
"netsh.exe" advfirewall firewall delete rule name="MariaDB Server" | "netsh.exe" advfirewall firewall delete rule name="MariaDB Server" |
| |
====== Maintenance ====== | ====== Maintenance ====== |
| |
| ===== One-shot ===== |
| |
| **** |
| |
| "%ProgramFiles%\MariaDB 12.1\bin\mariadb-check.exe" -u "root" -p -o -A -f -e --auto-repair |
| |
| ==== Server Start ==== |
| |
**** | **** |
| |
<code>"%ProgramFiles%\MariaDB 12.0\bin\mariadb-check.exe" -u "root" -p -o -A -f -e --auto-repair</code> | "%ProgramFiles%\MariaDB 12.1\bin\mariadbd.exe" --defaults-file="%ProgramFiles%\MariaDB 12.1\data\my.ini" |
| |
===== Scripts ===== | ===== Scripts ===== |
| |
<code> | <code> |
START "MariaDB Server" "%ProgramFiles%\MariaDB 12.0\bin\mariadbd.exe" --defaults-file="%ProgramFiles%\MariaDB 12.0\data\my.ini" | START "MariaDB Server" "%ProgramFiles%\MariaDB 12.1\bin\mariadbd.exe" --defaults-file="%ProgramFiles%\MariaDB 12.1\data\my.ini" |
| |
"%ProgramFiles%\MariaDB 12.0\bin\mariadb-check.exe" -u "root" -p -o -A -f -e --auto-repair | TIMEOUT /T "2" /NOBREAK |
| "%ProgramFiles%\MariaDB 12.1\bin\mariadb-check.exe" -u "root" -p -o -A -f -e --auto-repair |
| |
:: End</code> | :: End</code> |
| |
| "%UserProfile%\Downloads\DB Maintenance.bat" |
| |
==== Server ==== | ==== Server ==== |
| |
"notepad.exe" "%UserProfile%\Desktop\MariaDB Maintenance.bat" | MKDIR "%SystemDrive%\www\scripts\mariadb" |
| |
| "notepad.exe" "%SystemDrive%\www\scripts\mariadb\Maintenance.bat" |
| |
<code> | <code> |
"%ProgramFiles%\MariaDB 12.0\bin\mariadb-check.exe" -u "root" -p -o -A -f -e --auto-repair | "%ProgramFiles%\MariaDB 12.1\bin\mariadb-check.exe" -u "root" -p -o -A -f -e --auto-repair |
| |
:: End</code> | :: End</code> |
| |
| "%SystemDrive%\www\scripts\mariadb\Maintenance.bat" |
| |
| === Desktop === |
| |
| "%SystemDrive%\www\scripts\mariadb\Maintenance.bat" |
| |
| DB Maintenance |
| |