Comments - Running Multiple MariaDB Server Processes
Content reproduced on this site is the property of its respective owners,
and this content is not reviewed in advance by MariaDB. The views, information and opinions
expressed by this content do not necessarily represent those of MariaDB or any other party.
I can start multiple instance on MariaDB 10.5.8 as standalone db server by executing the following command:
Here below is the content of server.cnf:
[Service] ProtectHome=false Environment='MYSQLD_MULTI_INSTANCE=--defaults-file=/etc/my%I.cnf \ --user=mysql \ --socket=/mysql_1/%I.sock \ --pid-file=/mysql_1/%I.pid \ --datadir=/mysql_1 \ --port=33061 \ --skip-networking'
[mysqld] collation-server = utf8mb4_unicode_ci init-connect='SET NAMES utf8mb4' character-set-server = utf8mb4
[mariadb] collation-server = utf8mb4_unicode_ci init-connect='SET NAMES utf8mb4' character-set-server = utf8mb4
The following is /mysql_1 directory information after I executed the systemctl start command:
[root@test /]# ll /mysql_1 total 110628 -rw-rw---- 1 mysql mysql 24576 Jan 30 22:30 aria_log.00000001 -rw-rw---- 1 mysql mysql 52 Jan 30 22:30 aria_log_control -rw-rw---- 1 mysql mysql 976 Jan 30 22:30 ib_buffer_pool -rw-rw---- 1 mysql mysql 12582912 Jan 30 22:30 ibdata1 -rw-rw---- 1 mysql mysql 100663296 Jan 30 22:30 ib_logfile0 -rw-rw---- 1 mysql mysql 0 Jan 30 21:36 multi-master.info drwx------ 2 mysql mysql 4096 Jan 30 21:33 mysql drwx------ 2 mysql mysql 20 Jan 30 21:33 performance_schema
I found the socket and port used were not the ones I defined above:
Feb 1 11:27:20 test mariadbd: Version: '10.5.8-MariaDB' socket: '/var/lib/mysql/mysql.sock' port: 3306 MariaDB Server
What's wrong with my configuration?