summaryrefslogtreecommitdiff
path: root/scripts/mysqlhotcopy.sh
diff options
context:
space:
mode:
authorunknown <salle@geopard.online.bg>2002-08-03 19:48:45 +0300
committerunknown <salle@geopard.online.bg>2002-08-03 19:48:45 +0300
commit5414ede22f90a40e0f47d84c5ed6c24cc7dd2cce (patch)
tree3949e2618aa30938498cf8e3b126da837cb60483 /scripts/mysqlhotcopy.sh
parent0ebb78e8ef8fa1fc77ac8c9caeb8cbd37337030a (diff)
downloadmariadb-git-5414ede22f90a40e0f47d84c5ed6c24cc7dd2cce.tar.gz
Two small patches proposed by Paul DuBois
include/sslopt-usage.h: Paul's patch for --ssl-xxx options for the --help message scripts/mysqlhotcopy.sh: Paul's patch for --port option BitKeeper/etc/logging_ok: Logging to logging@openlogging.org accepted
Diffstat (limited to 'scripts/mysqlhotcopy.sh')
-rw-r--r--scripts/mysqlhotcopy.sh1
1 files changed, 1 insertions, 0 deletions
diff --git a/scripts/mysqlhotcopy.sh b/scripts/mysqlhotcopy.sh
index 45f1f1ed24a..707b4fc481c 100644
--- a/scripts/mysqlhotcopy.sh
+++ b/scripts/mysqlhotcopy.sh
@@ -156,6 +156,7 @@ $opt{allowold} = 1 if $opt{keepold};
# --- connect to the database ---
my $dsn = ";host=localhost";
+$dsn = ";host=127.0.0.1" if $opt{port}; # use TCP/IP if port was given
$dsn .= ";port=$opt{port}" if $opt{port};
$dsn .= ";mysql_socket=$opt{socket}" if $opt{socket};