From dbf893fbd4b39ab0ace49996616619a2297c52a4 Mon Sep 17 00:00:00 2001 From: "serg@serg.mylan" <> Date: Tue, 8 Jul 2003 17:27:22 +0200 Subject: added missing ~/.my.cnf support to mysqlhotcopy (bug #808) --- scripts/mysqlhotcopy.sh | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'scripts/mysqlhotcopy.sh') 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, -- cgit v1.2.1