#include <mysql_header.h>
Data Fields | |
MYSQL * | handler |
Handler to the MySql session. | |
time_t | last_connection_timestamp |
Timestamp of the last connection attempt. | |
int | connected |
This flag indicates whether the connection to the MySql server is alive or not.
| |
MYSQL_RES * | result |
For SELECT queries, this pointer points to selected data. | |
unsigned int | num_fields |
For SELECT queries, number of lines. | |
unsigned int | num_rows |
For SELECT queries, number of columns. | |
char | host [DB_HOST_MAX_SIZE] |
Name of the host that runs the MySql server. | |
char | user [DB_USER_MAX_SIZE] |
Login used to log to the MySql server. | |
char | passwd [DB_PASSWD_MAX_SIZE] |
Password used to access the MySql server. | |
char | db [DB_NAME_MAX_SIZE] |
Mane of the database. | |
unsigned int | port |
Port number used by the MySql server. | |
char | socket [MYSQL_SOCKET_FILE_MAX_SIZE] |
UNIX socket used by the MySql server. | |
int | connect_retry |
Maximum number of retries for MySql connections. | |
unsigned int | connect_timeout |
Timeout (in seconds) for the connection to the MySql server. | |
unsigned int | connect_sleep |
Number of seconds netween 2 connnection atsemps. | |
int | debug |
Debug mose. | |
char | log_file [MYSQL_DEBUG_FILE_MAX_SIZE] |
Path to the file used to log debug information. More... | |
time_t | reconnection_delay |
Delay between two reconnection attempts. | |
int | last_error_int |
Error code for the last MySql error. | |
char | last_error_str [MYSQL_MAX_ERROR_SIZE] |
Literal description of the last MySql error. | |
int(* | my_syslog )(const char *file, const char *fmt,...) |
Pointer to a function used to log debug information, if necessary. The signature of the function must be:
int my_syslog (const char *file, const char * fmt,...) Upon successful completion, the function must return the value 0. Otherwize, the function returns the value 1. If you set this field to the value NULL, then no output is done. |
Definition at line 105 of file mysql_header.h.
|
Path to the file used to log debug information.
Definition at line 192 of file mysql_header.h. Referenced by blackhole_abonne(), connect_to_mysql(), find_ip_in_vlan_pool(), get_ip_from_pool(), get_unix_timestamp(), load_abonne_ip(), load_abonnes(), load_context(), load_ip_lease(), load_logistic(), load_mysql_configuration_from_file(), load_options(), load_pool(), load_vlan(), look_up_logistic(), mydns_init(), nack_flag_abonne(), release_ip_from_pool(), remove_autoconf_bh(), send_to_mydns(), send_to_radonline(), set_flag_check_radius(), signal_unknown_mac_address(), sql_select(), standard_query(), try_find_and_reserve_ip_from_pool(), and try_reserve_ip_from_pool(). |