summaryrefslogtreecommitdiff
path: root/client/mysqlimport.c
diff options
context:
space:
mode:
authorunknown <jimw@mysql.com>2005-10-13 12:28:43 -0700
committerunknown <jimw@mysql.com>2005-10-13 12:28:43 -0700
commita247d3a3b7f0ec777a1b03b95f4a0971d1c8118b (patch)
treecfd3468b4f6101931995ce387572924a9fd3f2c4 /client/mysqlimport.c
parentc8067ec8489dfc1ee96ba89100a9ef067578ffca (diff)
downloadmariadb-git-a247d3a3b7f0ec777a1b03b95f4a0971d1c8118b.tar.gz
Fix being able to set default TCP port for command-line utilities
by using MYSQL_TCP_PORT variable. (Bug #5792) client/mysql.cc: Set default port to 0 so MYSQL_TCP_PORT is handled by mysql_server_init(). client/mysqladmin.cc: Set default port to 0 so MYSQL_TCP_PORT is handled by mysql_server_init(). client/mysqlbinlog.cc: Set default port to 0 so MYSQL_TCP_PORT is handled by mysql_server_init(). client/mysqlcheck.c: Set default port to 0 so MYSQL_TCP_PORT is handled by mysql_server_init(). client/mysqldump.c: Set default port to 0 so MYSQL_TCP_PORT is handled by mysql_server_init(). client/mysqlimport.c: Set default port to 0 so MYSQL_TCP_PORT is handled by mysql_server_init(). client/mysqlshow.c: Set default port to 0 so MYSQL_TCP_PORT is handled by mysql_server_init(). client/mysqltest.c: Set default port to 0 so MYSQL_TCP_PORT is handled by mysql_server_init().
Diffstat (limited to 'client/mysqlimport.c')
-rw-r--r--client/mysqlimport.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/client/mysqlimport.c b/client/mysqlimport.c
index ca4acd82db6..a2e408b3982 100644
--- a/client/mysqlimport.c
+++ b/client/mysqlimport.c
@@ -121,7 +121,7 @@ static struct my_option my_long_options[] =
NO_ARG, 0, 0, 0, 0, 0, 0},
#endif
{"port", 'P', "Port number to use for connection.", (gptr*) &opt_mysql_port,
- (gptr*) &opt_mysql_port, 0, GET_UINT, REQUIRED_ARG, MYSQL_PORT, 0, 0, 0, 0,
+ (gptr*) &opt_mysql_port, 0, GET_UINT, REQUIRED_ARG, 0, 0, 0, 0, 0,
0},
{"protocol", OPT_MYSQL_PROTOCOL, "The protocol of connection (tcp,socket,pipe,memory).",
0, 0, 0, GET_STR, REQUIRED_ARG, 0, 0, 0, 0, 0, 0},