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/07/16 13:10] – [Timer] Sean Rhone | servers:linux:mariadb [2025/10/16 23:25] (current) – [Create User] Sean Rhone | ||
---|---|---|---|
Line 1: | Line 1: | ||
====== Information ====== | ====== Information ====== | ||
- | * MariaDB | + | * MariaDB |
+ | * Server | ||
* [[Information: | * [[Information: | ||
Line 32: | Line 33: | ||
# End</ | # End</ | ||
- | |||
- | ==== Verify ===== | ||
- | |||
- | **** | ||
- | |||
- | sudo mariadb-admin variables | egrep ' | ||
====== Dependencies ====== | ====== Dependencies ====== | ||
Line 59: | Line 54: | ||
sudo mariadb-check --optimize --all-databases --force --extended --auto-repair | sudo mariadb-check --optimize --all-databases --force --extended --auto-repair | ||
- | ===== Create | + | ===== Service ===== |
+ | |||
+ | ==== Create User ==== | ||
sudo mariadb | sudo mariadb | ||
Line 67: | Line 64: | ||
GRANT SELECT, INSERT ON *.* to ' | GRANT SELECT, INSERT ON *.* to ' | ||
- | FLUSH PRIVILEGES; | + | FLUSH PRIVILEGES;EXIT; |
- | EXIT | + | ==== Authentication File ==== |
- | ===== Authentication File ===== | + | |
- | + | ||
- | | + | |
< | < | ||
Line 82: | Line 77: | ||
# End</ | # End</ | ||
- | ===== Service | + | ==== Service ==== |
sudo -e '/ | sudo -e '/ | ||
Line 91: | Line 86: | ||
Group=mysql | Group=mysql | ||
Type=oneshot | Type=oneshot | ||
+ | |||
ExecStart='/ | ExecStart='/ | ||
+ | |||
ExecStartPost='/ | ExecStartPost='/ | ||
# End</ | # End</ | ||
- | ===== Timer ===== | + | ==== Timer ==== |
- | sudo -e '/ | + | |
+ | |||
+ | | ||
< | < | ||
Line 113: | Line 112: | ||
# End</ | # End</ | ||
+ | |||
+ | sudo systemctl start ' | ||
====== Notable Commands ====== | ====== Notable Commands ====== | ||
+ | |||
+ | ===== Settings ===== | ||
+ | |||
+ | **** | ||
+ | |||
+ | sudo mariadb-admin variables | egrep ' | ||
===== Show Users on Server ===== | ===== Show Users on Server ===== | ||
Line 127: | Line 134: | ||
/ | / | ||
+ | |||
+ | ===== No sudo auth file ===== | ||
+ | |||
+ | * Uses an '' | ||
+ | |||
+ | sudo mariadb-dump --defaults-extra-file='/ | ||
/srv/www/wiki/data/attic/servers/linux/mariadb.1752685844.txt.gz · Last modified: by Sean Rhone