Details
-
Bug
-
Status: Open (View Workflow)
-
Major
-
Resolution: Unresolved
-
10.4(EOL), 10.5, 10.6, 10.7(EOL), 10.8(EOL), 10.9(EOL), 10.10(EOL), 10.11
-
None
-
None
Description
This script (usually referred to as mysql_secure_installation) is heavily used based on existing guidance/tutorials.
However, the flow makes no sense when Unix socket authentication is applied (as it is by default since 10.4). It's a confusing experience for users and should be fixed.
Suggestions:
If unix_socket_authentication is enabled:
1) Clarify that running the script is mostly unnecessary, perhaps using the text at the top of https://mariadb.com/kb/en/mysql_secure_installation/, and asking whether they are sure they wish to continue.
2) Remove the question "Switch to unix_socket authentication [Y/n]"
3) Remove the question "Change the root password? [Y/n]"
See also discussion on https://mariadb.zulipchat.com/#narrow/stream/118759-general/topic/'mariadb-secure-installation'.20script.20-.20root.20access where 2) and 3) were suggested by Red Hat's Michal Schorm, as well as MDEV-26593, which proposed solving the issue by removing the script entirely.
Attachments
Issue Links
- relates to
-
MDEV-26593 Replace mysql_secure_installation with a notice that it is useless
- Open
-
MDEV-28932 Clean up and document mysql-secure-installation
- Open