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 [2024/10/19 00:16] – [Authentication File] Sean Rhone | servers:linux:mariadb [2025/08/27 20:00] (current) – Sean Rhone | ||
---|---|---|---|
Line 3: | Line 3: | ||
* MariaDB ((https:// | * MariaDB ((https:// | ||
* [[Information: | * [[Information: | ||
- | |||
- | ===== References ===== | ||
- | |||
- | * https:// | ||
- | * https:// | ||
===== Prerequisites ===== | ===== Prerequisites ===== | ||
- | * [[linux;distros;server; | + | * [[linux:distros:server: |
- | * [[linux; | + | |
====== 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='/ |
- | ===== Timer ===== | + | # End</ |
+ | |||
+ | ==== 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: | ||
**** | **** | ||
- | / | + | |
+ | |||
+ | ===== No sudo auth file ===== | ||
+ | |||
+ | * Uses an '' | ||
+ | |||
+ | sudo mariadb-dump --defaults-extra-file=' | ||
/usr/local/www/wiki/data/attic/servers/linux/mariadb.1729311367.txt.gz · Last modified: by Sean Rhone