User Tools

Site Tools


servers:linux:mariadb

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
servers:linux:mariadb [2025/09/11 07:33] Sean Rhoneservers:linux:mariadb [2026/04/30 23:49] (current) – [Service] Sean Rhone
Line 42: Line 42:
 ====== Initial Setup ====== ====== Initial Setup ======
  
-****+  Change the root password?: ''n''
  
   sudo systemctl enable 'mariadb' --now && sudo mariadb-secure-installation   sudo systemctl enable 'mariadb' --now && sudo mariadb-secure-installation
Line 64: Line 64:
   GRANT SELECT, INSERT ON *.* to 'maintenance'@'localhost';   GRANT SELECT, INSERT ON *.* to 'maintenance'@'localhost';
  
-  FLUSH PRIVILEGES; +  FLUSH PRIVILEGES;EXIT;
- +
-  EXIT+
  
 ==== Authentication File ==== ==== Authentication File ====
Line 89: Line 87:
 Type=oneshot Type=oneshot
  
-ExecStart='/usr/bin/mariadb-check' --defaults-extra-file='/var/lib/mysql/auth/maintenance' --optimize --all-databases --force --extended --auto-repair+WorkingDirectory=/tmp
  
-ExecStartPost='/usr/bin/sync'+ExecStart='/usr/bin/mariadb-check--defaults-extra-file='/var/lib/mysql/auth/maintenance' --optimize --all-databases --force --extended --auto-repair
  
 # End</code> # End</code>
Line 97: Line 95:
 ==== Timer ==== ==== Timer ====
  
-  * Weekly+  * Weekly (Sunday) ''07:10:00 AM''
  
   sudo -e '/etc/systemd/system/db-m.timer' && sudo systemctl daemon-reload && sudo systemctl enable 'db-m.timer' --now   sudo -e '/etc/systemd/system/db-m.timer' && sudo systemctl daemon-reload && sudo systemctl enable 'db-m.timer' --now
Line 107: Line 105:
  
 [Timer] [Timer]
-OnCalendar=weekly+OnCalendar=Sun *-*-* 07:10:00
 Persistent=true Persistent=true
  
/srv/www/wiki/data/attic/servers/linux/mariadb.1757590383.txt.gz · Last modified: by Sean Rhone

Except where otherwise noted, content on this wiki is licensed under the following license: CC0 1.0 Universal
CC0 1.0 Universal Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki