servers:linux:mariadb
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
servers:linux:mariadb [2025/05/16 21:39] – external edit 127.0.0.1 | servers:linux:mariadb [2025/07/16 13:15] (current) – Sean Rhone | ||
---|---|---|---|
Line 6: | Line 6: | ||
===== Prerequisites ===== | ===== Prerequisites ===== | ||
- | * [[linux;distros;server; | + | * [[linux:distros:server: |
- | * [[linux; | + | |
- | + | ||
- | ===== Resources ===== | + | |
- | + | ||
- | * https:// | + | |
- | * https:// | + | |
====== Settings ====== | ====== Settings ====== | ||
Line 35: | Line 29: | ||
max_binlog_size = ' | max_binlog_size = ' | ||
skip-networking = ' | skip-networking = ' | ||
- | table_definition_cache = ' | + | table_definition_cache = ' |
+ | |||
+ | # End</ | ||
==== Verify ===== | ==== Verify ===== | ||
Line 47: | Line 43: | ||
**** | **** | ||
- | sudo dnf install ' | + | sudo zypper |
====== Initial Setup ====== | ====== Initial Setup ====== | ||
Line 63: | Line 59: | ||
sudo mariadb-check --optimize --all-databases --force --extended --auto-repair | sudo mariadb-check --optimize --all-databases --force --extended --auto-repair | ||
- | ===== Create MySQL User ===== | + | ===== Service ===== |
+ | |||
+ | ==== Create MySQL User ==== | ||
sudo mariadb | sudo mariadb | ||
Line 75: | Line 73: | ||
EXIT | EXIT | ||
- | ===== Authentication File ===== | + | ==== Authentication File ==== |
- | sudo mkdir -p '/ | + | sudo mkdir -p '/ |
< | < | ||
[mariadb-check] | [mariadb-check] | ||
user=maintenance | user=maintenance | ||
- | password=x</ | + | password=x |
- | ===== Service | + | # End</ |
+ | |||
+ | ==== Service ==== | ||
sudo -e '/ | sudo -e '/ | ||
Line 94: | Line 94: | ||
Type=oneshot | Type=oneshot | ||
ExecStart='/ | ExecStart='/ | ||
- | ExecStartPost='/ | + | ExecStartPost='/ |
+ | |||
+ | # End</ | ||
+ | |||
+ | ==== Timer ==== | ||
- | ===== Timer ===== | + | * Weekly |
sudo -e '/ | sudo -e '/ | ||
Line 110: | Line 114: | ||
[Install] | [Install] | ||
- | WantedBy=timers.target</ | + | WantedBy=timers.target |
+ | |||
+ | # End</ | ||
====== Notable Commands ====== | ====== Notable Commands ====== | ||
Line 124: | Line 130: | ||
**** | **** | ||
- | /var/lib/ | + | /run/ |
/srv/www/wiki/data/attic/servers/linux/mariadb.1747445948.txt.gz · Last modified: by 127.0.0.1