mirror of
https://github.com/MariaDB/server.git
synced 2025-01-17 20:42:30 +01:00
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
This commit is contained in:
parent
ce04b6fad7
commit
8ab4263338
2 changed files with 2 additions and 1 deletions
|
@ -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\
|
||||
|
|
|
@ -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};
|
||||
|
||||
|
|
Loading…
Reference in a new issue