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
fi
mysql_command=`find_in_basedir mysql $bindir`
if test -z "$print_defaults"
if test -z "$mysql_command"
then
cannot_find_file mysql $bindir
exit 1
......@@ -204,7 +204,7 @@ prepare() {
do_query() {
echo "$1" >$command
#sed 's,^,> ,' < $command # Debugging
$bindir/mysql --defaults-file=$config <$command
$mysql_command --defaults-file=$config <$command
return $?
}
......@@ -376,7 +376,6 @@ clean_and_exit() {
# The actual script starts here
prepare
find_mysql_client
set_echo_compat
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