From 8ab4263338fcad0af9d9ae1ca480606850f6aff0 Mon Sep 17 00:00:00 2001 From: unknown Date: Sat, 3 Aug 2002 19:02:05 +0300 Subject: [PATCH] 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 --- include/sslopt-usage.h | 2 +- scripts/mysqlhotcopy.sh | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/include/sslopt-usage.h b/include/sslopt-usage.h index e5e374dea44..e3536edf804 100644 --- a/include/sslopt-usage.h +++ b/include/sslopt-usage.h @@ -14,7 +14,7 @@ along with this program; if not, write to the Free Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA */ -#ifdef OPEN_SSL +#ifdef HAVE_OPENSSL puts("\ --ssl Use SSL for connection (automatically set with other flags\n\ --ssl-key X509 key in PEM format (implies --ssl)\n\ 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};