[MDEV-27425] "mariadb-secure-installation --print-defaults" / "mysql_secure_installation --print-defaults" doesn't work Created: 2022-01-05  Updated: 2022-02-16

Status: Open
Project: MariaDB Server
Component/s: Configuration, Documentation
Affects Version/s: 10.5.12
Fix Version/s: N/A

Type: Bug Priority: Minor
Reporter: Gerrit Hübbers Assignee: Unassigned
Resolution: Unresolved Votes: 0
Labels: None
Environment:

Debian 11.2 bullseye amd64



 Description   

https://mariadb.com/kb/en/mysql_secure_installation/ (permalink) mentions twice the --print-defaults option for command mariadb-secure-installation (or mysql_secure_installation):

--print-defaults Print the program argument list and exit.

But running mariadb-secure-installation --print-defaults (or mysql_secure_installation --print-defaults) doesn't show the argument list, but rather seems to behave just like running mariadb-secure-installation (or mysql_secure_installation) without any options.

It would be helpful to have an option -print-defaults to see with which options mariadb-secure-installation sets up the secure installation.

Detailed environment:

Server version: 10.5.12-MariaDB-0+deb11u1 Debian 11
 
running on a Debian 11.2
# uname -a
Linux foo 5.10.0-10-amd64 #1 SMP Debian 5.10.84-1 (2021-12-08) x86_64 GNU/Linux
 
# apt list mariadb*
mariadb-backup/stable,stable 1:10.5.12-0+deb11u1 amd64
mariadb-client-10.5/stable,stable,now 1:10.5.12-0+deb11u1 amd64 [installed,automatic]
mariadb-client-core-10.5/stable,stable,now 1:10.5.12-0+deb11u1 amd64 [installed,automatic]
mariadb-client/stable,stable,now 1:10.5.12-0+deb11u1 all [installed]
mariadb-common/stable,stable,now 1:10.5.12-0+deb11u1 all [installed,automatic]
mariadb-plugin-connect/stable,stable 1:10.5.12-0+deb11u1 amd64
mariadb-plugin-cracklib-password-check/stable,stable 1:10.5.12-0+deb11u1 amd64
mariadb-plugin-gssapi-client/stable,stable 1:10.5.12-0+deb11u1 amd64
mariadb-plugin-gssapi-server/stable,stable 1:10.5.12-0+deb11u1 amd64
mariadb-plugin-mroonga/stable,stable 1:10.5.12-0+deb11u1 amd64
mariadb-plugin-oqgraph/stable,stable 1:10.5.12-0+deb11u1 amd64
mariadb-plugin-rocksdb/stable,stable 1:10.5.12-0+deb11u1 amd64
mariadb-plugin-s3/stable,stable 1:10.5.12-0+deb11u1 amd64
mariadb-plugin-spider/stable,stable 1:10.5.12-0+deb11u1 amd64
mariadb-server-10.5/stable,stable,now 1:10.5.12-0+deb11u1 amd64 [installed,automatic]
mariadb-server-core-10.5/stable,stable,now 1:10.5.12-0+deb11u1 amd64 [installed,automatic]
mariadb-server/stable,stable,now 1:10.5.12-0+deb11u1 all [installed]
mariadb-test-data/stable,stable 1:10.5.12-0+deb11u1 all
mariadb-test/stable,stable 1:10.5.12-0+deb11u1 amd64



 Comments   
Comment by Ian Gilfillan [ 2022-02-16 ]

Documentation updated, unassigning from me so that the suggestion can be considered.

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