[MDEV-8655] default_master_connection can't be set in option files or on command-line Created: 2015-08-20  Updated: 2015-08-24  Resolved: 2015-08-24

Status: Closed
Project: MariaDB Server
Component/s: Documentation, Replication
Affects Version/s: 10.0.21, 10.1.6
Fix Version/s: N/A

Type: Bug Priority: Major
Reporter: Geoff Montee (Inactive) Assignee: Ian Gilfillan
Resolution: Fixed Votes: 0
Labels: replication


 Description   

default_master_connection can't currently be set in option files or on the command-line.

e.g.:

$ grep "default_master_connection" /etc/my.cnf.d/server.cnf
default_master_connection='test_master'

If I try to start the server, it errors out:

150820 14:19:00 [ERROR] /usr/sbin/mysqld: unknown variable 'default_master_connection=test_master'
150820 14:19:00 [ERROR] Aborting

The KB says that --default-master-connection should work on the command-line, but that doesn't work either:

https://mariadb.com/kb/en/mariadb/replication-and-binary-log-server-system-variables/#default_master_connection

$ sudo service mysql bootstrap --default-master-connection='test_master'
Bootstrapping the cluster.. Starting MySQL... ERROR!

150820 14:29:42 [ERROR] /usr/sbin/mysqld: unknown variable 'default-master-connection=test_master'
150820 14:29:42 [ERROR] Aborting



 Comments   
Comment by Elena Stepanova [ 2015-08-20 ]

I think documentation is overly-optimistic. It's a session-only variable, cannot really be set on server startup.

Comment by Ian Gilfillan [ 2015-08-24 ]

The documentation has been updated to remove the hopeful commandline option.

Generated at Thu Feb 08 07:28:47 UTC 2024 using Jira 8.20.16#820016-sha1:9d11dbea5f4be3d4cc21f03a88dd11d8c8687422.