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:29] – Sean Rhone | servers:bsd:mariadb [2026/01/09 17:24] (current) – [Script] Sean Rhone | ||
|---|---|---|---|
| Line 1: | Line 1: | ||
| + | ====== Information ====== | ||
| + | |||
| + | * MariaDB ((https:// | ||
| + | * Server | ||
| + | * [[information: | ||
| + | |||
| + | ===== Prerequisites ===== | ||
| + | |||
| + | * [[bsd: | ||
| + | |||
| + | ====== Dependencies ====== | ||
| + | |||
| + | su - | ||
| + | |||
| + | pkg install ' | ||
| + | |||
| ====== Settings ====== | ====== Settings ====== | ||
| + | |||
| + | su - | ||
| ee '/ | ee '/ | ||
| Line 17: | 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</ | ||
| - | * TODO (copy of mysql) | + | ====== Service ====== |
| - | < | + | ===== Initial ===== |
| - | root@Spinesnap: | + | |
| - | Installing MariaDB/ | + | |
| - | OK | + | |
| - | To start mariadbd at boot time you have to copy | + | su - |
| - | support-files/ | + | |
| + | sysrc mysql_enable=" | ||
| - | Two all-privilege accounts were created. | + | service |
| - | One is root@localhost, | + | |
| - | be system | + | |
| - | The second is root@localhost, | + | |
| - | you need to be the system 'root' | + | |
| - | 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:// | + | ===== Status ===== |
| - | You can start the MariaDB daemon with: | + | su - |
| - | cd '/ | + | |
| - | You can test the MariaDB daemon with mariadb-test-run.pl | + | service 'mysql-server' |
| - | cd '/ | + | |
| - | Please report any problems at https:// | + | ====== Initial Setup ====== |
| - | The latest information about MariaDB is available at https:// | + | su - |
| - | Consider joining MariaDB' | + | |
| - | https://mariadb.org/get-involved/ | + | |
| - | Starting mysql. | + | ====== Database Repair and Optimization ====== |
| - | </ | + | |
| - | service 'mysql-server' | + | ===== One-shot ===== |
| - | | + | |
| - | | + | |
| - | mysql_secure_installation | + | ===== cron ===== |
| - | mysqladmin | + | ==== Script ==== |
| - | | + | |
| - | mysqladmin -u ' | + | < |
| + | #!/bin/sh | ||
| - | | + | '/usr/local/ |
| - | | + | '/bin/sync' |
| - | ====== Install Notes ====== | + | # End</ |
| + | |||
| + | su ' | ||
| + | |||
| + | ==== cron ==== | ||
| + | |||
| + | * Weekly (Sunday) '' | ||
| + | |||
| + | su - | ||
| + | |||
| + | ee '/ | ||
| < | < | ||
| - | ===== | + | # |
| - | Message from mariadb114-server-11.4.2: | + | SHELL=/ |
| + | |||
| + | 10 7 * * sun root '/ | ||
| + | |||
| + | # End</ | ||
| + | |||
| + | ====== Notable Commands ====== | ||
| + | |||
| + | ===== Binaries ===== | ||
| + | |||
| + | pkg info -l ' | ||
| + | |||
| + | pkg info -l ' | ||
| + | |||
| + | ===== Settings ===== | ||
| + | |||
| + | su - | ||
| + | |||
| + | mariadb-admin variables | egrep ' | ||
| + | |||
| + | ===== Show Users on Server ===== | ||
| + | |||
| + | su - | ||
| - | -- | + | mariadb |
| - | MariaDB respects hier(7) and doesn' | + | |
| - | 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 | + | select User,Host from mysql.user; |
| - | the MariaDB tarball but the most recent version can be found in the | + | |
| - | databases/ | + | |
| - | Using wsrep clustering requires adding a configuration file. | ||
| - | Copy / | ||
| - | / | ||
| - | </ | ||
C:/www/wiki/data/attic/servers/bsd/mariadb.1727933398.txt.gz · Last modified: by Sean Rhone
