diff options
author | serg@serg.mylan <> | 2003-07-08 17:27:22 +0200 |
---|---|---|
committer | serg@serg.mylan <> | 2003-07-08 17:27:22 +0200 |
commit | dbf893fbd4b39ab0ace49996616619a2297c52a4 (patch) | |
tree | 1ec69e6fde9610692b1366b1cc46d0cd46021973 /scripts/mysqlhotcopy.sh | |
parent | 74ac300642d83a50e328a679954e5af5df8cdd3f (diff) | |
download | mariadb-git-dbf893fbd4b39ab0ace49996616619a2297c52a4.tar.gz |
added missing ~/.my.cnf support to mysqlhotcopy (bug #808)
Diffstat (limited to 'scripts/mysqlhotcopy.sh')
-rw-r--r-- | scripts/mysqlhotcopy.sh | 5 |
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, |