Troy Perkins wrote:
> Thanks Enrico, I found that before sending to the mailing list and did tried
> changing the 1 to a 0 for MYSQL_OPT_RECONNECT in database.c - still get the
> same problem.

in file mysql.h, the version 3.23.58 contain the following enum:

enum mysql_option
{ MYSQL_OPT_CONNECT_TIMEOUT, MYSQL_OPT_COMPRESS,
  MYSQL_OPT_NAMED_PIPE, MYSQL_INIT_COMMAND,
  MYSQL_READ_DEFAULT_FILE, MYSQL_READ_DEFAULT_GROUP,
  MYSQL_SET_CHARSET_DIR, MYSQL_SET_CHARSET_NAME,
  MYSQL_OPT_LOCAL_INFILE
};

the version 5.x in the same file contain:

enum mysql_option
{
  MYSQL_OPT_CONNECT_TIMEOUT, MYSQL_OPT_COMPRESS, MYSQL_OPT_NAMED_PIPE,
  MYSQL_INIT_COMMAND, MYSQL_READ_DEFAULT_FILE, MYSQL_READ_DEFAULT_GROUP,
  MYSQL_SET_CHARSET_DIR, MYSQL_SET_CHARSET_NAME, MYSQL_OPT_LOCAL_INFILE,
  MYSQL_OPT_PROTOCOL, MYSQL_SHARED_MEMORY_BASE_NAM      
MYSQL_OPT_READ_TIMEOUT,
  MYSQL_OPT_WRITE_TIMEOUT, MYSQL_OPT_USE_RESULT,
  MYSQL_OPT_USE_REMOTE_CONNECTION, MYSQL_OPT_USE_EMBEDDED_CONNECTION,
  MYSQL_OPT_GUESS_CONNECTION, MYSQL_SET_CLIENT_IP, MYSQL_SECURE_AUTH,
  MYSQL_REPORT_DATA_TRUNCATION, MYSQL_OPT_RECONNECT
};

as you can see the option "MYSQL_OPT_RECONNECT" is not present in
previous version of mysql.h, MYSQL_OPT_RECONNECT option is used to
control reconnection behavior, it enable or disable automatic
reconnection to the server if the connection is found to have been lost.
Reconnect has been off by default since MySQL 5.0.3; this option is new
in 5.0.13 and provides a way to set reconnection behavior explicitly.


-- 
___________________________________________________
Enrico Lorenzo De Vito IT MANAGER at SDT S.p.A.
EUCIP Elective Information System Analyst Certified
EUCIP Core Certified N. ITA0000001576 - AIP N. 2884
Tel. 3477324347 - Tel. 3922092003 - Tel. 085413686
_______________________________________________
Ntop-dev mailing list
[email protected]
http://listgateway.unipi.it/mailman/listinfo/ntop-dev

Reply via email to