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/01 22:24] Sean Rhoneservers:bsd:mariadb [2024/12/01 14:28] (current) Sean Rhone
Line 1: Line 1:
-  * TODO (copy of mysql)+====== Dependencies ======
  
-<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 +  pkg install 'mariadb114-server'
-support-files/mariadb.service to the right place for your system+
  
 +====== Settings ======
  
-Two all-privilege accounts were created. +  su -
-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+  ee '/usr/local/etc/mysql/conf.d/custom.cnf'
  
-You can start the MariaDB daemon with: +<code> 
-cd '/usr/local' ; /usr/local/bin/mariadbd-safe --datadir='/var/db/mysql'+[client] 
 +default-character-set = 'utf8mb4'
  
-You can test the MariaDB daemon with mariadb-test-run.pl +[mariadb-client] 
-cd '/usr/local/; perl mariadb-test-run.pl+default-character-set = 'utf8mb4'
  
-Please report any problems at https://mariadb.org/jira+[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>
  
-The latest information about MariaDB is available at https://mariadb.org/.+====== Service ======
  
-Consider joining MariaDB's strong and vibrant community: +===== Initial =====
-https://mariadb.org/get-involved/+
  
-Starting mysql. +  su -
-</code> +
- +
-  service 'mysql-server' status+
  
   sysrc mysql_enable="YES"   sysrc mysql_enable="YES"
Line 42: Line 38:
   service 'mysql-server' start   service 'mysql-server' start
  
-  mysql_secure_installation+===== 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 =====
  
-  mysqladmin+****
  
-  mysqlcheck -u 'root' -p -o -A -f -e --auto-repair+  mariadb-admin -u 'root' -p variables | egrep 'utf8|networking|socket'
  
-  mysqladmin -u 'root' -p variables | egrep 'utf8|networking|socket'+===== Socket =====
  
-  /tmp/mysql.sock+  mariadb-admin variables -u 'root' -p | grep 'socket'
  
-  /tmp/mysqlx.sock+  /var/run/mysql/mysql.sock
  
/srv/www/wiki/data/attic/servers/bsd/mariadb.1727835889.txt.gz · Last modified: by Sean Rhone