Commit fafe55c1 authored by Michael Widenius's avatar Michael Widenius

Merge with 5.1

parents 03854661 47cba6a2
...@@ -1378,6 +1378,10 @@ static int parse_args(int *argc, char*** argv) ...@@ -1378,6 +1378,10 @@ static int parse_args(int *argc, char*** argv)
*/ */
static Exit_status safe_connect() static Exit_status safe_connect()
{ {
/* Close and old connections to MySQL */
if (mysql)
mysql_close(mysql);
mysql= mysql_init(NULL); mysql= mysql_init(NULL);
if (!mysql) if (!mysql)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment