[MDEV-33265] unknown variable 'defaults-group-suffix= with mariadb-secure-installation Created: 2024-01-17  Updated: 2024-01-17

Status: Confirmed
Project: MariaDB Server
Component/s: Server
Affects Version/s: 10.5, 10.6, 10.11
Fix Version/s: 10.5, 10.6, 10.11, 11.0, 11.1, 11.2

Type: Bug Priority: Major
Reporter: Nilnandan Joshi Assignee: Vladislav Vaintroub
Resolution: Unresolved Votes: 0
Labels: None


 Description   

As per the documentation, defaults-group-suffix option should work with mariadb-secure-installation script. https://mariadb.com/kb/en/mariadb-secure-installation/

But when we try to run, getting error like unknown variable.

[root@localhost ~]# mariadb-secure-installation --defaults-group-suffix=.lz
 
NOTE: RUNNING ALL PARTS OF THIS SCRIPT IS RECOMMENDED FOR ALL MariaDB
      SERVERS IN PRODUCTION USE!  PLEASE READ EACH STEP CAREFULLY!
...
Enter current password for root (enter for none): 
/usr/bin/mariadb: unknown variable 'defaults-group-suffix=.lz'
OK, successfully used password, moving on...

Even in the script we don't see that option mentioned.

[root@localhost ~]# head -50 /usr/bin/mariadb-secure-installation
#!/bin/sh
...
config=".my.cnf.$$"
command=".mysql.$$"
output=".my.output.$$"
 
trap "interrupt" 1 2 3 6 15
 
rootpass=""
echo_n=
echo_c=
basedir=
defaults_file=
defaults_extra_file=
no_defaults=


Generated at Thu Feb 08 10:37:37 UTC 2024 using Jira 8.20.16#820016-sha1:9d11dbea5f4be3d4cc21f03a88dd11d8c8687422.