User Tools

Site Tools


servers:bsd:mariadb

Differences

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

Link to this comparison view

Next revision
Previous revision
servers:bsd:mariadb [2024/09/15 19:35] – created Sean Rhoneservers:bsd:mariadb [2024/12/01 14:28] (current) Sean Rhone
Line 1: Line 1:
 +====== Dependencies ======
 +
 +  su -
 +
 +  pkg install 'mariadb114-server'
 +
 +====== Settings ======
 +
 +  su -
 +
 +  ee '/usr/local/etc/mysql/conf.d/custom.cnf'
 +
 <code> <code>
-Message from mariadb114-client-11.4.2:+[client] 
 +default-character-set = 'utf8mb4' 
 + 
 +[mariadb-client] 
 +default-character-set = 'utf8mb4' 
 + 
 +[mariadbd] 
 +character-set-client-handshake = 'FALSE' 
 +character-set-server = 'utf8mb4' 
 +collation-server = 'utf8mb4_unicode_ci' 
 +init-connect='SET NAMES utf8mb4' 
 +expire_logs_days = '7' 
 +max_binlog_size = '100M' 
 +skip-networking = 'On' 
 +table_definition_cache = '1400'</code> 
 + 
 +====== Service ====== 
 + 
 +===== Initial ===== 
 + 
 +  su - 
 + 
 +  sysrc mysql_enable="YES" 
 + 
 +  service 'mysql-server' start 
 + 
 +===== Status ===== 
 + 
 +  su - 
 + 
 +  service 'mysql-server' status 
 + 
 +====== Initial Setup ====== 
 + 
 +  su - 
 + 
 +  mariadb-secure-installation 
 + 
 +====== Optimize ====== 
 + 
 +**** 
 + 
 +  mariadb-check -u 'root' -p -o -A -f -e --auto-repair 
 + 
 +====== Other ====== 
 + 
 +===== Binaries ===== 
 + 
 +  pkg info -l 'mariadb114-server' | grep 'bin' 
 + 
 +  pkg info -l 'mariadb114-client' | grep 'bin' 
 + 
 +===== Settings Query ===== 
 + 
 +**** 
 + 
 +  mariadb-admin -u 'root' -p variables | egrep 'utf8|networking|socket' 
 + 
 +===== Socket =====
  
--- +  mariadb-admin variables -u 'root' -p | grep 'socket'
-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 +
-/usr/local/etc/mysql or /usr/local/etc. Sample +
-configuration files are provided in /usr/local/etc/mysql +
-and /usr/local/etc/mysql/conf.d. +
-The rc(8) script no longer uses /var/db/mysql/my.cnf for configuration +
-nor /var/db/mysql for logs and PID-file.+
  
-This port does NOT include the mytop perl script, this is included in +  /var/run/mysql/mysql.sock
-the MariaDB tarball but the most recent version can be found in the +
-databases/mytop port+
  
-%%WSREP%%Using wsrep clustering requires adding a configuration file. 
-%%WSREP%%Copy /usr/local/etc/mysql/conf.d/wsrep.conf.sample to 
-%%WSREP%%/usr/local/etc/mysql/conf.d/wsrep.conf and change what you need there.</code> 
/srv/www/wiki/data/attic/servers/bsd/mariadb.1726443341.txt.gz · Last modified: (external edit)