[MDEV-26660] Command line clients don't work with Connector/C configuration files Created: 2021-09-22  Updated: 2021-09-22

Status: Open
Project: MariaDB Server
Component/s: Scripts & Clients
Affects Version/s: 10.6.4
Fix Version/s: None

Type: Bug Priority: Major
Reporter: Georg Richter Assignee: Unassigned
Resolution: Unresolved Votes: 0
Labels: None


 Description   

Since mysql command line clients use their own configuration file parser, it is not possible to add Connector/C specific options in e.g. client section

Example:

[client]
reconnect=1
ssl_enforce=1

Starting command line client now ends up with an error:

$ mysql
mysql: [ERROR] unknown variable 'ssl_enforce=1'.

Possible solutions:

  • read options via MariaDB Connector/C
  • ignore unknown keywords
  • support an additional default section [connector] in Connector/C which will contain key/value pairs only used by Connector/C.


 Comments   
Comment by Vladislav Vaintroub [ 2021-09-22 ]

Everything that is in config file, should be possible to pass via command line. This is the general idea. If clients do not support some obscure C/C options, they need to fix that, and not config file only.

Generated at Thu Feb 08 09:46:59 UTC 2024 using Jira 8.20.16#820016-sha1:9d11dbea5f4be3d4cc21f03a88dd11d8c8687422.