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/03 01:37] – Sean Rhone | servers:bsd:mariadb [2026/03/05 23:57] (current) – [Script] Sean Rhone | ||
|---|---|---|---|
| Line 1: | Line 1: | ||
| + | ====== Information ====== | ||
| + | |||
| + | * MariaDB ((https:// | ||
| + | * Server | ||
| + | * [[information: | ||
| + | |||
| + | ===== Prerequisites ===== | ||
| + | |||
| + | * [[bsd: | ||
| + | |||
| ====== Dependencies ====== | ====== Dependencies ====== | ||
| - | su -l | + | su - |
| - | pkg install 'mariadb114-server' | + | pkg install 'mariadb118-server' |
| ====== Settings ====== | ====== Settings ====== | ||
| + | |||
| + | su - | ||
| ee '/ | ee '/ | ||
| Line 23: | Line 35: | ||
| expire_logs_days = ' | expire_logs_days = ' | ||
| max_binlog_size = ' | max_binlog_size = ' | ||
| - | skip-networking = 'On' | + | skip-networking = 'Off' |
| - | table_definition_cache = ' | + | table_definition_cache = ' |
| + | |||
| + | # End</ | ||
| ====== Service ====== | ====== Service ====== | ||
| - | | + | ===== Initial ===== |
| + | |||
| + | | ||
| sysrc mysql_enable=" | sysrc mysql_enable=" | ||
| Line 34: | Line 50: | ||
| service ' | service ' | ||
| - | mariadb-secure-installation | + | ===== Status ===== |
| + | |||
| + | su - | ||
| service ' | service ' | ||
| - | / | + | ====== Initial Setup ====== |
| - | | + | |
| - | | + | |
| - | mysqladmin -u ' | + | ====== Database Repair and Optimization ====== |
| - | / | + | ===== One-shot ===== |
| - | | + | |
| - | ====== Install Notes ====== | + | mariadb-check -o -A -f -e --auto-repair |
| - | ===== Install Notes ===== | + | ===== cron ===== |
| + | |||
| + | ==== Script ==== | ||
| + | |||
| + | mkdir -p ~/' | ||
| < | < | ||
| - | ===== | + | #!/bin/sh |
| - | Message from mariadb114-server-11.4.2: | + | |
| - | -- | + | cd '/tmp' |
| - | MariaDB respects hier(7) and doesn't check /etc and /etc/mysql for | + | |
| - | my.cnf. Please move existing my.cnf files from those paths to | + | |
| - | / | + | |
| - | configuration files are provided in / | + | |
| - | and / | + | |
| - | The rc(8) script no longer uses / | + | |
| - | nor / | + | |
| - | This port does NOT include the mytop perl script, this is included in | + | '/usr/ |
| - | the MariaDB tarball but the most recent version can be found in the | + | |
| - | databases/mytop port | + | |
| - | Using wsrep clustering requires adding a configuration file. | + | '/bin/sync' |
| - | Copy /usr/local/ | + | |
| - | / | + | |
| - | </ | + | |
| - | ===== Service ===== | + | # End</ |
| + | |||
| + | su ' | ||
| + | |||
| + | ==== cron ==== | ||
| + | |||
| + | * Weekly (Sunday) '' | ||
| + | |||
| + | su - | ||
| + | |||
| + | ee '/ | ||
| < | < | ||
| - | Installing MariaDB/MySQL system tables in '/var/db/mysql' ... | + | # |
| - | OK | + | SHELL=/bin/sh |
| + | |||
| + | 10 7 * * sun root '/home/espionage724/.local/ | ||
| + | |||
| + | # End</ | ||
| + | |||
| + | ====== Notable Commands ====== | ||
| - | To start mariadbd at boot time you have to copy | + | ===== Binaries ===== |
| - | support-files/ | + | |
| + | pkg info -l ' | ||
| - | Two all-privilege accounts were created. | + | pkg info -l 'mariadb118-client' |
| - | 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:// | + | ===== Settings ===== |
| - | You can start the MariaDB daemon with: | + | su - |
| - | cd '/ | + | |
| - | You can test the MariaDB daemon with mariadb-test-run.pl | + | |
| - | cd '/usr/local/' | + | |
| - | Please report any problems at https:// | + | ===== Show Users on Server ===== |
| - | The latest information about MariaDB is available at https:// | + | su - |
| - | Consider joining MariaDB' | + | |
| - | https://mariadb.org/ | + | |
| - | Starting | + | select User,Host from mysql.user; |
| - | </ | + | |
C:/www/wiki/data/attic/servers/bsd/mariadb.1727933859.txt.gz · Last modified: by Sean Rhone
