slave.c
/* Initialize MySQL connection to a slave */
Initialize MySQL connection to a slave
Initialize MySQL connection to a slave
MYSQL *init_slave(char *init_command)
{
    MYSQL *mysql = mysql_init(NULL);
    if (init_command)
        mysql_options(mysql, MYSQL_INIT_COMMAND, init_command);
    bool reconnect = 1;
    mysql_options(mysql, MYSQL_OPT_RECONNECT, &reconnect);
    connect_or_keep_connecting(mysql);
    return mysql;
}
MYSQL * init_slave ( char * init_command ) { MYSQL * mysql = mysql_init ( NULL ) ; if ( init_command ) mysql_options ( mysql , MYSQL_INIT_COMMAND , init_command ) ; bool reconnect = 1 ; mysql_options ( mysql , MYSQL_OPT_RECONNECT , & reconnect ) ; connect_or_keep_connecting ( mysql ) ; return mysql ; }
Initialize MySQL connection to a slave
Initialize MySQL connection to a slave
/* Return always-ready MySQL connect handle */