summaryrefslogtreecommitdiff
path: root/mysql-test/mysql-test-run.pl
diff options
context:
space:
mode:
authorAnel Husakovic <anel@mariadb.org>2021-04-06 16:02:53 +0200
committerAnel Husakovic <anel@mariadb.org>2021-07-08 12:41:56 +0200
commit8977ad6c7772cf132c0a9400a0a6dbde31c17fe7 (patch)
tree05a2b5e5d3a7361a0140306f560abe6cc030327b /mysql-test/mysql-test-run.pl
parente56fe393104960eb62043c3777ce7d21de9362f4 (diff)
downloadmariadb-git-bb-10.4-anel-mysql-secureinstall.tar.gz
mysql_secure_installation redesignbb-10.4-anel-mysql-secureinstall
Patch includes redesign of the script and solves following MDEVs: - MDEV-22486: mysql_secure_installation cannot work without root user in the database - MDEV-25169 Secure installation with normal user fails to accept empty root password - MDEV-10112: mysql_secure_installation should use GRANT, REVOKE, etc for galera support - MDEV-19316: mysql_secure_installation should offer to rename root user Closes PR #1288 - Adding test case for the script evaluation Co-author: Daniel Black <daniel@mariadb.org> Reviewed by: daniel@mariadb.org serg@mariadb.com
Diffstat (limited to 'mysql-test/mysql-test-run.pl')
-rwxr-xr-xmysql-test/mysql-test-run.pl11
1 files changed, 11 insertions, 0 deletions
diff --git a/mysql-test/mysql-test-run.pl b/mysql-test/mysql-test-run.pl
index e4ecc910556..325f792d9fb 100755
--- a/mysql-test/mysql-test-run.pl
+++ b/mysql-test/mysql-test-run.pl
@@ -2166,6 +2166,17 @@ sub environment_setup {
}
# ----------------------------------------------------
+ # mysql_secure_installation
+ # ----------------------------------------------------
+ my $mysql_secure_installation=
+ mtr_pl_maybe_exists("$bindir/scripts/mysql_secure_installation") ||
+ mtr_pl_maybe_exists("$path_client_bindir/mysql_secure_installation");
+ if ($mysql_secure_installation)
+ {
+ $ENV{'MYSQL_SECURE_INSTALLATION'}= $mysql_secure_installation;
+ }
+
+ # ----------------------------------------------------
# perror
# ----------------------------------------------------
my $exe_perror= mtr_exe_exists("$bindir/extra$opt_vs_config/perror",