summaryrefslogtreecommitdiff
path: root/scripts/mysqlhotcopy.sh
diff options
context:
space:
mode:
authorunknown <serg@serg.mylan>2003-07-08 17:27:22 +0200
committerunknown <serg@serg.mylan>2003-07-08 17:27:22 +0200
commit072162dff7a1e71413c40d3ee1d485ac8c1f575c (patch)
tree1ec69e6fde9610692b1366b1cc46d0cd46021973 /scripts/mysqlhotcopy.sh
parentd0486f8abce9e241103acb33ac4f82f11e2b76c4 (diff)
downloadmariadb-git-072162dff7a1e71413c40d3ee1d485ac8c1f575c.tar.gz
added missing ~/.my.cnf support to mysqlhotcopy (bug #808)
Diffstat (limited to 'scripts/mysqlhotcopy.sh')
-rw-r--r--scripts/mysqlhotcopy.sh5
1 files changed, 5 insertions, 0 deletions
diff --git a/scripts/mysqlhotcopy.sh b/scripts/mysqlhotcopy.sh
index fa35a1c6555..7385be65092 100644
--- a/scripts/mysqlhotcopy.sh
+++ b/scripts/mysqlhotcopy.sh
@@ -81,6 +81,11 @@ sub usage {
die @_, $OPTIONS;
}
+# reading ~/.my.cnf
+my @defops = `@bindir@/my_print_defaults client mysqlhotcopy`;
+chop @defops;
+splice @ARGV, 0, 0, @defops;
+
my %opt = (
user => scalar getpwuid($>),
noindices => 0,