mysql_options to use MYSQL_OPT_RECONNECT

Version 1.402

Feature
Finished

DA previously had the following code: #ifdef MYSQL_OPT_RECONNECT my_bool recon=true; mysql_options(&con, MYSQL_OPT_RECONNECT, &recon); #else #warning "MYSQL_OPT_RECONNECT is not available" #endif However, it was noticed that no matter which OS was used, MYSQL_OPT_RECONNECT was never actually defined (which is odd). I've changed the code to be: #ifndef NO_MYSQL_OPT_RECONNECT //added the reconnect on July 31, 2008 my_bool recon=true; mysql_options(&con, MYSQL_OPT_RECONNECT, &recon); #else #warning "MYSQL_OPT_RECONNECT is not available" #endif and set the NO_MYSQL_OPT_RECONNECT flag manually for any OS which doesn't support the option. ---------------------- What this option will do, is re-connect to mysql if the connection was dropped. This is useful during restores when the connection may be dropped mid-way through the restore (if a large DB is being restored).

Interested to try DirectAdmin? Get a 30-day Free Trial!