aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSergey Poznyakoff <gray@gnu.org.ua>2012-06-05 12:33:08 +0300
committerSergey Poznyakoff <gray@gnu.org.ua>2012-06-05 12:33:08 +0300
commitd79d3ec3156e6a20d8eeabf9302fa21fe13d732c (patch)
tree78058d4e17d7ef53e016ad907d7b05895e0d66bb
parentcacdb74e8aa04aea266a542a2108247730757cbb (diff)
downloadbeam-d79d3ec3156e6a20d8eeabf9302fa21fe13d732c.tar.gz
beam-d79d3ec3156e6a20d8eeabf9302fa21fe13d732c.tar.bz2
Bugfix.
* lib/beam/mysql.sh: Do not use -A and --batch options with mysql: they disable --defaults-file somehow.
-rw-r--r--lib/beam/mysql.sh4
1 files changed, 3 insertions, 1 deletions
diff --git a/lib/beam/mysql.sh b/lib/beam/mysql.sh
index fd6e33c..a99c4fc 100644
--- a/lib/beam/mysql.sh
+++ b/lib/beam/mysql.sh
@@ -68,7 +68,9 @@ mysql_restore() {
tarcode $e
if [ $e -eq 0 ]; then
logit "restoring database from the dump"
- cmd="mysql -A --batch"
+ # Stupid lossage: cannot give -A option here, because with it mysql
+ # refuses to understand defaults-file.
+ cmd="mysql"
eval defaults_file=\$${1}_defaults_file
if [ -n "$defaults_file" ]; then
cmd="$cmd --defaults-file=$defaults_file"

Return to:

Send suggestions and report system problems to the System administrator.