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:29] Sean Rhoneservers:bsd:mariadb [2024/12/01 14:28] (current) Sean Rhone
Line 1: Line 1:
 +====== Dependencies ======
 +
 +  su -
 +
 +  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 20: Line 28:
 table_definition_cache = '1400'</code> table_definition_cache = '1400'</code>
  
 +====== Service ======
  
-  * TODO (copy of mysql)+===== Initial =====
  
-<code> +  su -
-root@Spinesnap:~ # service 'mysql-server' start +
-Installing MariaDB/MySQL system tables in '/var/db/mysql' ... +
-OK+
  
-To start mariadbd at boot time you have to copy +  sysrc mysql_enable="YES"
-support-files/mariadb.service to the right place for your system+
  
 +  service 'mysql-server' start
  
-Two all-privilege accounts were created. +===== Status =====
-One is root@localhost, it has no password, but you need to +
-be system 'root' user to connect. Use, for example, sudo mysql +
-The second is root@localhost, it has no password either, but +
-you need to be the system 'root' user 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+  su -
  
-You can start the MariaDB daemon with: +  service 'mysql-serverstatus
-cd '/usr/local' ; /usr/local/bin/mariadbd-safe --datadir='/var/db/mysql'+
  
-You can test the MariaDB daemon with mariadb-test-run.pl +====== Initial Setup ======
-cd '/usr/local/' ; perl mariadb-test-run.pl+
  
-Please report any problems at https://mariadb.org/jira+  su -
  
-The latest information about MariaDB is available at https://mariadb.org/.+  mariadb-secure-installation
  
-Consider joining MariaDB's strong and vibrant community: +====== Optimize ======
-https://mariadb.org/get-involved/+
  
-Starting mysql. +****
-</code>+
  
-  service 'mysql-serverstatus+  mariadb-check -u 'root' -p -o -A -f -e --auto-repair
  
-  sysrc mysql_enable="YES"+====== Other ======
  
-  service 'mysql-server' start+===== Binaries =====
  
-  mysql_secure_installation+  pkg info -l 'mariadb114-server' | grep 'bin'
  
-  mysqladmin+  pkg info -l 'mariadb114-client' | grep 'bin'
  
-  mysqlcheck -u 'root' -p -o -A -f -e --auto-repair+===== Settings Query =====
  
-  mysqladmin -u 'root' -p variables | egrep 'utf8|networking|socket'+****
  
-  /tmp/mysql.sock+  mariadb-admin -u 'root' -p variables | egrep 'utf8|networking|socket'
  
-  /tmp/mysqlx.sock +===== Socket =====
- +
-====== Install Notes ====== +
- +
-<code> +
-===== +
-Message from mariadb114-server-11.4.2:+
  
--- +  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+
  
-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> 
/srv/www/wiki/data/attic/servers/bsd/mariadb.1727933398.txt.gz · Last modified: by Sean Rhone