[MXS-4499] config_sync_cluster always uses the mysql database Created: 2023-02-06  Updated: 2023-02-21  Resolved: 2023-02-16

Status: Closed
Project: MariaDB MaxScale
Component/s: Core
Affects Version/s: 6.4.5, 22.08.4
Fix Version/s: 6.4.6, 22.08.5

Type: Bug Priority: Major
Reporter: markus makela Assignee: markus makela
Resolution: Fixed Votes: 0
Labels: None


 Description   

The database used in the configuration synchronization is always the mysql database. This makes the use of the feature very strict and also prevents various features from being used with it due to where it is created. For example, creating triggers on this table is not possible as MariaDB forbids the creation of them on any table inside the mysql database, including user-created ones.

The simple solution to this is to make the database configurable. The proposed parameter, config_sync_db, would still default to mysql but it would at least make it configurable. This would also allow the configuration synchronization user to be created with a reduced set of grants that only relate to the configured database.



 Comments   
Comment by markus makela [ 2023-02-14 ]

There's no good reason to not make the db configurable. It should've been so from the first place as non-system use of the mysql could be considered a somewhat of a bad practice.

Comment by markus makela [ 2023-02-16 ]

Added the config_sync_db configuration parameter that defaults to mysql.

Generated at Thu Feb 08 04:29:05 UTC 2024 using Jira 8.20.16#820016-sha1:9d11dbea5f4be3d4cc21f03a88dd11d8c8687422.