Commit a0a93d99 authored by Sergei Golubchik's avatar Sergei Golubchik

MDEV-4399 mysql_secure_installation reports error in find_mysql_client

1. remove find_mysql_client (from a bad merge)
2. use $mysql_command
parent 2d25525d
...@@ -182,7 +182,7 @@ else ...@@ -182,7 +182,7 @@ else
fi fi
mysql_command=`find_in_basedir mysql $bindir` mysql_command=`find_in_basedir mysql $bindir`
if test -z "$print_defaults" if test -z "$mysql_command"
then then
cannot_find_file mysql $bindir cannot_find_file mysql $bindir
exit 1 exit 1
...@@ -204,7 +204,7 @@ prepare() { ...@@ -204,7 +204,7 @@ prepare() {
do_query() { do_query() {
echo "$1" >$command echo "$1" >$command
#sed 's,^,> ,' < $command # Debugging #sed 's,^,> ,' < $command # Debugging
$bindir/mysql --defaults-file=$config <$command $mysql_command --defaults-file=$config <$command
return $? return $?
} }
...@@ -376,7 +376,6 @@ clean_and_exit() { ...@@ -376,7 +376,6 @@ clean_and_exit() {
# The actual script starts here # The actual script starts here
prepare prepare
find_mysql_client
set_echo_compat set_echo_compat
echo echo
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment