servers:bsd:mariadb
Differences
This shows you the differences between two versions of the page.
| Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
| servers:bsd:mariadb [2024/10/01 22:24] – Sean Rhone | servers:bsd:mariadb [2026/01/09 17:24] (current) – [Script] Sean Rhone | ||
|---|---|---|---|
| Line 1: | Line 1: | ||
| - | * TODO (copy of mysql) | + | ====== Information ====== |
| - | < | + | * MariaDB ((https://mariadb.org/)) |
| - | root@Spinesnap:~ # service ' | + | * Server |
| - | Installing MariaDB/MySQL system tables in '/var/db/ | + | * [[information: |
| - | OK | + | |
| - | To start mariadbd at boot time you have to copy | + | ===== Prerequisites ===== |
| - | support-files/ | + | |
| + | * [[bsd: | ||
| - | Two all-privilege accounts were created. | + | ====== Dependencies ====== |
| - | One is root@localhost, | + | |
| - | be system ' | + | |
| - | The second is root@localhost, | + | |
| - | you need to be the system ' | + | |
| - | After connecting you can set the password, if you would need to be | + | |
| - | able to connect as any of these users with a password and without sudo | + | |
| - | See the MariaDB Knowledgebase at https:// | + | su - |
| - | You can start the MariaDB daemon with: | + | pkg install |
| - | cd '/ | + | |
| - | You can test the MariaDB daemon with mariadb-test-run.pl | + | ====== Settings ====== |
| - | cd '/ | + | |
| - | Please report any problems at https:// | + | su - |
| - | The latest information about MariaDB is available at https://mariadb.org/. | + | ee '/usr/local/ |
| - | Consider joining MariaDB' | + | < |
| - | https:// | + | [client] |
| + | default-character-set = ' | ||
| - | Starting mysql. | + | [mariadb-client] |
| - | </ | + | default-character-set = ' |
| - | service | + | [mariadbd] |
| + | character-set-client-handshake = 'FALSE' | ||
| + | character-set-server | ||
| + | collation-server = ' | ||
| + | init-connect=' | ||
| + | expire_logs_days = ' | ||
| + | max_binlog_size = ' | ||
| + | skip-networking = ' | ||
| + | table_definition_cache = ' | ||
| + | |||
| + | # End</ | ||
| + | |||
| + | ====== Service ====== | ||
| + | |||
| + | ===== Initial ===== | ||
| + | |||
| + | su - | ||
| sysrc mysql_enable=" | sysrc mysql_enable=" | ||
| Line 42: | Line 50: | ||
| service ' | service ' | ||
| - | mysql_secure_installation | + | ===== Status ===== |
| + | |||
| + | su - | ||
| + | |||
| + | service ' | ||
| + | |||
| + | ====== Initial Setup ====== | ||
| + | |||
| + | su - | ||
| + | |||
| + | mariadb-secure-installation | ||
| + | |||
| + | ====== Database Repair and Optimization ====== | ||
| + | |||
| + | ===== One-shot ===== | ||
| + | |||
| + | su - | ||
| + | |||
| + | mariadb-check -o -A -f -e --auto-repair | ||
| + | |||
| + | ===== cron ===== | ||
| + | |||
| + | ==== Script ==== | ||
| + | |||
| + | mkdir -p ~/' | ||
| + | |||
| + | < | ||
| + | #!/bin/sh | ||
| + | |||
| + | '/ | ||
| + | |||
| + | '/ | ||
| + | |||
| + | # End</ | ||
| + | |||
| + | su ' | ||
| + | |||
| + | ==== cron ==== | ||
| + | |||
| + | * Weekly (Sunday) '' | ||
| + | |||
| + | su - | ||
| + | |||
| + | ee '/ | ||
| + | |||
| + | < | ||
| + | # | ||
| + | SHELL=/ | ||
| + | |||
| + | 10 7 * * sun root '/ | ||
| + | |||
| + | # End</ | ||
| + | |||
| + | ====== Notable Commands ====== | ||
| + | |||
| + | ===== Binaries ===== | ||
| + | |||
| + | pkg info -l ' | ||
| + | |||
| + | pkg info -l ' | ||
| + | |||
| + | ===== Settings ===== | ||
| + | |||
| + | su - | ||
| - | | + | |
| - | mysqlcheck -u ' | + | ===== Show Users on Server ===== |
| - | | + | |
| - | | + | |
| - | | + | |
C:/www/wiki/data/attic/servers/bsd/mariadb.1727835889.txt.gz · Last modified: by Sean Rhone
