Skip site navigation (1)Skip section navigation (2)

FreeBSD Manual Pages

  
 
  

home | help
mariadb_reconnect(3)	      MariaDB Connector/C	  mariadb_reconnect(3)

   Name
       mariadb_reconnect - reconnects to a server

   Synopsis
	      #include <mysql.h>

	      my_bool  mariadb_reconnect(MYSQL * mysql)

   Description
       mariadb_reconnect()  tries to reconnect to a server in case the connec-
       tion died due to	timeout	or other errors.  It uses the same credentials
       which were specified in mysql_real_connect(3).

   Return value
       The function will return	0 on success, a	non zero value on error

       Note: The function will return an error,	if the option MYSQL_OPT_RECON-
       NECT wasn't set before.

   History
       mariadb_reconnect() was added in	MariaDB	Connector/C 3.0

   See also
        mysql_real_connect(3)

        mysql_optionsv(3)

Version	3.4						  mariadb_reconnect(3)

Want to link to this manual page? Use this URL:
<
https://man.freebsd.org/cgi/man.cgi?query=mariadb_reconnect&sektion=3&manpath=FreeBSD+Ports+14.3.quarterly>

home | help