mirror of
https://github.com/MariaDB/server.git
synced 2025-01-31 11:01:52 +01:00
Merge zippy.cornsilk.net:/home/cmiller/work/mysql/bug17700/my41-bug17700
into zippy.cornsilk.net:/home/cmiller/work/mysql/mysql-4.1-maint
This commit is contained in:
commit
a70b94281c
1 changed files with 13 additions and 5 deletions
|
@ -120,9 +120,6 @@ then
|
|||
fi
|
||||
|
||||
cmd="$bindir/mysql --no-defaults --force --user=$user --host=$host"
|
||||
if test ! -z "$password" ; then
|
||||
cmd="$cmd --password=$password"
|
||||
fi
|
||||
if test ! -z "$port"; then
|
||||
cmd="$cmd --port=$port"
|
||||
fi
|
||||
|
@ -178,11 +175,22 @@ then
|
|||
s_echo ""
|
||||
fi
|
||||
|
||||
run_cmd() {
|
||||
# Password argument is added here to allow for spaces in password.
|
||||
|
||||
if test ! -z "$password"
|
||||
then
|
||||
cat $sql_file | $cmd --password="$password"
|
||||
else
|
||||
cat $sql_file | $cmd
|
||||
fi
|
||||
}
|
||||
|
||||
if test $verbose = 0
|
||||
then
|
||||
cat $sql_file | $cmd > /dev/null 2>&1
|
||||
run_cmd > /dev/null 2>&1
|
||||
else
|
||||
cat $sql_file | $cmd > /dev/null
|
||||
run_cmd > /dev/null
|
||||
fi
|
||||
if test $? = 0
|
||||
then
|
||||
|
|
Loading…
Add table
Reference in a new issue