servers:linux:mariadb
Differences
This shows you the differences between two versions of the page.
Next revision | Previous revision | ||
servers:linux:mariadb [2024/08/13 16:34] – created 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 ===== | ||
- | * [[distros:fedora_server|Fedora | + | * [[linux:distros:server: |
====== Settings ====== | ====== Settings ====== | ||
Line 34: | Line 29: | ||
max_binlog_size = ' | max_binlog_size = ' | ||
skip-networking = ' | skip-networking = ' | ||
- | table_definition_cache = ' | + | table_definition_cache = ' |
+ | |||
+ | # End</ | ||
==== Verify ===== | ==== Verify ===== | ||
Line 46: | Line 43: | ||
**** | **** | ||
- | sudo dnf install ' | + | sudo zypper |
====== Initial Setup ====== | ====== Initial Setup ====== | ||
Line 62: | 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 72: | 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 91: | Line 94: | ||
Type=oneshot | Type=oneshot | ||
ExecStart='/ | ExecStart='/ | ||
- | ExecStartPost='/ | + | ExecStartPost='/ |
- | ===== Timer ===== | + | # End</ |
+ | |||
+ | ==== Timer ==== | ||
+ | |||
+ | * Weekly | ||
sudo -e '/ | sudo -e '/ | ||
Line 107: | Line 114: | ||
[Install] | [Install] | ||
- | WantedBy=timers.target</ | + | WantedBy=timers.target |
+ | |||
+ | # End</ | ||
====== Notable Commands ====== | ====== Notable Commands ====== | ||
Line 121: | Line 130: | ||
**** | **** | ||
- | / | + | |
+ | |||
+ | ===== No sudo auth file ===== | ||
+ | |||
+ | * Uses an '' | ||
+ | |||
+ | sudo mariadb-dump --defaults-extra-file=' | ||
/usr/local/www/wiki/data/attic/servers/linux/mariadb.1723581274.txt.gz · Last modified: by Sean Rhone