Blame SOURCES/mariadb-mysql_secure_installation.patch
|
|
2a2834 |
From a0a93d99939de297863f7060e78e6a0ce7a271a7 Mon Sep 17 00:00:00 2001
|
|
|
2a2834 |
From: Sergei Golubchik <sergii@pisem.net>
|
|
|
2a2834 |
Date: Tue, 18 Nov 2014 22:26:04 +0100
|
|
|
2a2834 |
Subject: [PATCH] MDEV-4399 mysql_secure_installation reports error in
|
|
|
2a2834 |
find_mysql_client
|
|
|
2a2834 |
|
|
|
2a2834 |
1. remove find_mysql_client (from a bad merge)
|
|
|
2a2834 |
2. use $mysql_command
|
|
|
2a2834 |
---
|
|
|
2a2834 |
scripts/mysql_secure_installation.sh | 5 ++---
|
|
|
2a2834 |
1 file changed, 2 insertions(+), 3 deletions(-)
|
|
|
2a2834 |
|
|
|
2a2834 |
diff --git a/scripts/mysql_secure_installation.sh b/scripts/mysql_secure_installation.sh
|
|
|
2a2834 |
index 9e9bce9..8eca327 100644
|
|
|
2a2834 |
--- a/scripts/mysql_secure_installation.sh
|
|
|
2a2834 |
+++ b/scripts/mysql_secure_installation.sh
|
|
|
2a2834 |
@@ -182,7 +182,7 @@ else
|
|
|
2a2834 |
fi
|
|
|
2a2834 |
|
|
|
2a2834 |
mysql_command=`find_in_basedir mysql $bindir`
|
|
|
2a2834 |
-if test -z "$print_defaults"
|
|
|
2a2834 |
+if test -z "$mysql_command"
|
|
|
2a2834 |
then
|
|
|
2a2834 |
cannot_find_file mysql $bindir
|
|
|
2a2834 |
exit 1
|
|
|
2a2834 |
@@ -204,7 +204,7 @@ prepare() {
|
|
|
2a2834 |
do_query() {
|
|
|
2a2834 |
echo "$1" >$command
|
|
|
2a2834 |
#sed 's,^,> ,' < $command # Debugging
|
|
|
2a2834 |
- $bindir/mysql --defaults-file=$config <$command
|
|
|
2a2834 |
+ $mysql_command --defaults-file=$config <$command
|
|
|
2a2834 |
return $?
|
|
|
2a2834 |
}
|
|
|
2a2834 |
|
|
|
2a2834 |
@@ -376,7 +376,6 @@ clean_and_exit() {
|
|
|
2a2834 |
# The actual script starts here
|
|
|
2a2834 |
|
|
|
2a2834 |
prepare
|
|
|
2a2834 |
-find_mysql_client
|
|
|
2a2834 |
set_echo_compat
|
|
|
2a2834 |
|
|
|
2a2834 |
echo
|
|
|
2a2834 |
--
|
|
|
2a2834 |
2.5.5
|
|
|
2a2834 |
|