User Tools

Site Tools


servers:bsd: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:bsd:mariadb [2024/10/03 01:37] Sean Rhoneservers:bsd:mariadb [2024/12/01 14:28] (current) Sean Rhone
Line 1: Line 1:
 ====== Dependencies ====== ====== Dependencies ======
  
-  su -l+  su -
  
   pkg install 'mariadb114-server'   pkg install 'mariadb114-server'
  
 ====== Settings ====== ====== Settings ======
 +
 +  su -
  
   ee '/usr/local/etc/mysql/conf.d/custom.cnf'   ee '/usr/local/etc/mysql/conf.d/custom.cnf'
Line 28: Line 30:
 ====== Service ====== ====== Service ======
  
-  su -l+===== Initial ===== 
 + 
 +  su -
  
   sysrc mysql_enable="YES"   sysrc mysql_enable="YES"
Line 34: Line 38:
   service 'mysql-server' start   service 'mysql-server' start
  
-  mariadb-secure-installation+===== Status ===== 
 + 
 +  su -
  
   service 'mysql-server' status   service 'mysql-server' status
  
-  /usr/local/etc/rc.d/mysql-server+====== Initial Setup ======
  
-  mysqladmin+  su -
  
-  mysqlcheck -u 'root' -p -o -A -f -e --auto-repair+  mariadb-secure-installation
  
-  mysqladmin -u 'root' -p variables | egrep 'utf8|networking|socket'+====== Optimize ======
  
-  /tmp/mysql.sock+****
  
-  /tmp/mysqlx.sock +  mariadb-check -'root-p -o -A -f -e --auto-repair
- +
-====== Install Notes ====== +
- +
-===== Install Notes ===== +
- +
-<code> +
-===== +
-Message from mariadb114-server-11.4.2: +
- +
--- +
-MariaDB respects hier(7) and doesn'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 +
-the MariaDB tarball but the most recent version can be found in the +
-databases/mytop port +
- +
-Using wsrep clustering requires adding a configuration file. +
-Copy /usr/local/etc/mysql/conf.d/wsrep.conf.sample to +
-/usr/local/etc/mysql/conf.d/wsrep.conf and change what you need there. +
-</code> +
- +
-===== Service ===== +
- +
-<code> +
-Installing MariaDB/MySQL system tables in '/var/db/mysql... +
-OK+
  
-To start mariadbd at boot time you have to copy +====== Other ======
-support-files/mariadb.service to the right place for your system+
  
 +===== Binaries =====
  
-Two all-privilege accounts were created. +  pkg info -'mariadb114-server| grep 'bin'
-One is root@localhost, it has no password, but you need to +
-be system 'rootuser to connect. Use, for example, sudo mysql +
-The second is root@localhost, it has no password either, but +
-you need to be the system 'rootuser to connect. +
-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://mariadb.com/kb+  pkg info -l 'mariadb114-client' | grep 'bin'
  
-You can start the MariaDB daemon with: +===== Settings Query =====
-cd '/usr/local' ; /usr/local/bin/mariadbd-safe --datadir='/var/db/mysql'+
  
-You can test the MariaDB daemon with mariadb-test-run.pl +****
-cd '/usr/local/' ; perl mariadb-test-run.pl+
  
-Please report any problems at https://mariadb.org/jira+  mariadb-admin -u 'root' -p variables | egrep 'utf8|networking|socket'
  
-The latest information about MariaDB is available at https://mariadb.org/.+===== Socket =====
  
-Consider joining MariaDB's strong and vibrant community: +  mariadb-admin variables -u 'root' -p | grep 'socket'
-https://mariadb.org/get-involved/+
  
-Starting mysql+  /var/run/mysql/mysql.sock
-</code>+
  
/srv/www/wiki/data/attic/servers/bsd/mariadb.1727933859.txt.gz · Last modified: by Sean Rhone