Details
-
Bug
-
Status: Closed (View Workflow)
-
Blocker
-
Resolution: Fixed
-
10.1.20
-
Debian 8 x64
Description
To start multiple instances of MariaDB, you added a /lib/systemd/system/mariadb@.service, indicating that we must create config file for the second daemon in /etc/mysql/conf.d/my{instancename}.cnf.
But this file is read by the main daemon! In /etc/mysql/my.cnf, we found at the bottom:
!includedir /etc/mysql/conf.d/*
So the main daemon:
- reads the port/socket/etc. from my.cnf
- change those values later when reading my{instancename}.cnf
I you comment the !includedir and add as many !include /etc/mysql/conf.d/{conf}.cnf you have, it works as expected.
To my mind, the "clean" way of fixing it si to read those my{instancename}.cnf files from /etc/mysql, and NOT from /etc/mysql/conf.d.
Attachments
Issue Links
- causes
-
MDEV-19765 Bug in CMakeLists.txt introduced by MDEV-11670
-
- Closed
-
Activity
Field | Original Value | New Value |
---|---|---|
Description |
To start multiple instances of MariaDB, you added a {{/lib/systemd/system/mariadb@.service}}, indicating that we must create config file for the second daemon in {{/etc/mysql/conf.d/my{instancename}.cnf}}.
But this file is read by the main daemon! In /etc/mysql/my.cnf, we found at the bottom: {{!includedir /etc/mysql.conf.d/*}} So the main daemon: * reads the port/socket/etc. from my.cnf * change those values later when reading {{my{instancename}.cnf}} I you comment the {{!includedir}} and add as many {{!include /etc/mysql/conf.d/{conf}.cnf}} you have, it works as expected. To my mind, the "clean" way of fixing it si to read those {{my{instancename}.cnf}} files from {{/etc/mysql}}, and NOT from {{/etc/mysql/conf.d}}. |
To start multiple instances of MariaDB, you added a {{/lib/systemd/system/mariadb@.service}}, indicating that we must create config file for the second daemon in {{/etc/mysql/conf.d/my\{instancename\}.cnf}}.
But this file is read by the main daemon! In /etc/mysql/my.cnf, we found at the bottom: {{!includedir /etc/mysql.conf.d/*}} So the main daemon: * reads the port/socket/etc. from my.cnf * change those values later when reading {{my{instancename}.cnf}} I you comment the {{!includedir}} and add as many {{!include /etc/mysql/conf.d/{conf}.cnf}} you have, it works as expected. To my mind, the "clean" way of fixing it si to read those {{my{instancename}.cnf}} files from {{/etc/mysql}}, and NOT from {{/etc/mysql/conf.d}}. |
Description |
To start multiple instances of MariaDB, you added a {{/lib/systemd/system/mariadb@.service}}, indicating that we must create config file for the second daemon in {{/etc/mysql/conf.d/my\{instancename\}.cnf}}.
But this file is read by the main daemon! In /etc/mysql/my.cnf, we found at the bottom: {{!includedir /etc/mysql.conf.d/*}} So the main daemon: * reads the port/socket/etc. from my.cnf * change those values later when reading {{my{instancename}.cnf}} I you comment the {{!includedir}} and add as many {{!include /etc/mysql/conf.d/{conf}.cnf}} you have, it works as expected. To my mind, the "clean" way of fixing it si to read those {{my{instancename}.cnf}} files from {{/etc/mysql}}, and NOT from {{/etc/mysql/conf.d}}. |
To start multiple instances of MariaDB, you added a {{/lib/systemd/system/mariadb@.service}}, indicating that we must create config file for the second daemon in {{/etc/mysql/conf.d/my\{instancename\}.cnf}}.
But this file is read by the main daemon! In /etc/mysql/my.cnf, we found at the bottom: {{!includedir /etc/mysql.conf.d/*}} So the main daemon: * reads the port/socket/etc. from my.cnf * change those values later when reading {{my\{instancename\}.cnf}} I you comment the {{!includedir}} and add as many {{!include /etc/mysql/conf.d/\{conf\}.cnf}} you have, it works as expected. To my mind, the "clean" way of fixing it si to read those {{my\{instancename\}.cnf}} files from {{/etc/mysql}}, and NOT from {{/etc/mysql/conf.d}}. |
Fix Version/s | 10.1 [ 16100 ] | |
Assignee | Sergey Vojtovich [ svoj ] |
Labels | systemd |
Assignee | Sergey Vojtovich [ svoj ] | Vicentiu Ciorbaru [ cvicentiu ] |
Priority | Major [ 3 ] | Critical [ 2 ] |
Assignee | Vicentiu Ciorbaru [ cvicentiu ] | Axel Schwenke [ axel ] |
Fix Version/s | 10.4 [ 22408 ] | |
Fix Version/s | 10.1 [ 16100 ] |
Priority | Critical [ 2 ] | Blocker [ 1 ] |
Fix Version/s | 10.4.5 [ 23311 ] | |
Fix Version/s | 10.4 [ 22408 ] |
Fix Version/s | 10.4 [ 22408 ] | |
Fix Version/s | 10.4.5 [ 23311 ] |
Status | Open [ 1 ] | In Progress [ 3 ] |
Description |
To start multiple instances of MariaDB, you added a {{/lib/systemd/system/mariadb@.service}}, indicating that we must create config file for the second daemon in {{/etc/mysql/conf.d/my\{instancename\}.cnf}}.
But this file is read by the main daemon! In /etc/mysql/my.cnf, we found at the bottom: {{!includedir /etc/mysql.conf.d/*}} So the main daemon: * reads the port/socket/etc. from my.cnf * change those values later when reading {{my\{instancename\}.cnf}} I you comment the {{!includedir}} and add as many {{!include /etc/mysql/conf.d/\{conf\}.cnf}} you have, it works as expected. To my mind, the "clean" way of fixing it si to read those {{my\{instancename\}.cnf}} files from {{/etc/mysql}}, and NOT from {{/etc/mysql/conf.d}}. |
To start multiple instances of MariaDB, you added a {{/lib/systemd/system/mariadb@.service}}, indicating that we must create config file for the second daemon in {{/etc/mysql/conf.d/my\{instancename\}.cnf}}.
But this file is read by the main daemon! In /etc/mysql/my.cnf, we found at the bottom: {{!includedir /etc/mysql/conf.d/*}} So the main daemon: * reads the port/socket/etc. from my.cnf * change those values later when reading {{my\{instancename\}.cnf}} I you comment the {{!includedir}} and add as many {{!include /etc/mysql/conf.d/\{conf\}.cnf}} you have, it works as expected. To my mind, the "clean" way of fixing it si to read those {{my\{instancename\}.cnf}} files from {{/etc/mysql}}, and NOT from {{/etc/mysql/conf.d}}. |
issue.field.resolutiondate | 2019-06-14 13:49:46.0 | 2019-06-14 13:49:46.365 |
Fix Version/s | 10.4.6 [ 23412 ] | |
Fix Version/s | 10.4 [ 22408 ] | |
Resolution | Fixed [ 1 ] | |
Status | In Progress [ 3 ] | Closed [ 6 ] |
Link |
This issue causes |
Workflow | MariaDB v3 [ 78912 ] | MariaDB v4 [ 151446 ] |
Apologies Worst - does https://github.com/MariaDB/server/pull/510 look acceptable?