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/08/25 18:15] – external edit 127.0.0.1 | 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 | ||
- | GRANT SELECT, INSERT ON *.* to ' | + | |
+ | |||
+ | | ||
FLUSH PRIVILEGES; | FLUSH PRIVILEGES; | ||
Line 73: | 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 92: | Line 94: | ||
Type=oneshot | Type=oneshot | ||
ExecStart='/ | ExecStart='/ | ||
- | ExecStartPost='/ | + | ExecStartPost='/ |
- | ===== Timer ===== | + | # End</ |
+ | |||
+ | ==== Timer ==== | ||
+ | |||
+ | * Weekly | ||
sudo -e '/ | sudo -e '/ | ||
Line 108: | Line 114: | ||
[Install] | [Install] | ||
- | WantedBy=timers.target</ | + | WantedBy=timers.target |
+ | |||
+ | # End</ | ||
====== Notable Commands ====== | ====== Notable Commands ====== | ||
Line 122: | Line 130: | ||
**** | **** | ||
- | / | + | |
+ | |||
+ | ===== No sudo auth file ===== | ||
+ | |||
+ | * Uses an '' | ||
+ | |||
+ | sudo mariadb-dump --defaults-extra-file=' | ||
/usr/local/www/wiki/data/attic/servers/linux/mariadb.1724624130.txt.gz · Last modified: by 127.0.0.1