diff options
author | guilhem@mysql.com <> | 2004-12-09 14:44:10 +0100 |
---|---|---|
committer | guilhem@mysql.com <> | 2004-12-09 14:44:10 +0100 |
commit | 1cbc904c596d624232249ac67c83dabe21e1eacb (patch) | |
tree | eaf6f2f2b65c091f3dbda162d6f00154f6680a14 /tools | |
parent | 2bf9291b0c5a1776e73a7313232ddcb5086e601b (diff) | |
download | mariadb-git-1cbc904c596d624232249ac67c83dabe21e1eacb.tar.gz |
Changing the default of libmysqlclient : it's now NO reconnection.
All our programs which use mysql_real_connect() and mysql_connect() are updated accordingly, though I have deliberately
made mysqlimport not reconnect anymore (already true for mysqldump >= 4.1.8).
All Connector devs have been warned about the change I'm doing here - which was agreed with Monty,
and fixes BUG#2555.
Diffstat (limited to 'tools')
-rw-r--r-- | tools/mysqlmanager.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/tools/mysqlmanager.c b/tools/mysqlmanager.c index bb0a76d6c49..1be0242c505 100644 --- a/tools/mysqlmanager.c +++ b/tools/mysqlmanager.c @@ -877,7 +877,10 @@ static void manager_exec_connect(struct manager_exec* e) { if (mysql_real_connect(&e->mysql,e->con_host,e->con_user,e->con_pass,0, e->con_port,e->con_sock,0)) + { + e->mysql.reconnect= 1; return; + } sleep(1); } e->error="Could not connect to MySQL server withing the number of tries"; |