Search Results
https://dev.mysql.com/doc/c-api/9.7/en/mysql-create-db.html
CR_SERVER_LOST The connection to the server was lost during the query. int mysql_create_db(MYSQL *mysql, const char *db) Description Creates the database named by the db parameter. Use mysql_real_query() or mysql_query() to issue an SQL CREATE ...
https://dev.mysql.com/doc/c-api/9.7/en/mysql-drop-db.html
CR_SERVER_LOST The connection to the server was lost during the query. int mysql_drop_db(MYSQL *mysql, const char *db) Description Drops the database named by the db parameter. Use mysql_real_query() or mysql_query() to issue an SQL DROP DATABASE ...
https://dev.mysql.com/doc/c-api/9.7/en/mysql-errno.html
A rule of thumb is that all functions that have to ask the server for information reset mysql_errno() if they succeed. unsigned int mysql_errno(MYSQL *mysql) Description For the connection specified by mysql, mysql_errno() returns the error code ...
https://dev.mysql.com/doc/c-api/9.7/en/mysql-fetch-row.html
Its asynchronous counterpart is mysql_fetch_row_nonblocking(), for use by applications that require asynchronous communication with the server. Errors Errors are not reset between calls to mysql_fetch_row() CR_SERVER_LOST The connection to the ...
https://dev.mysql.com/doc/c-api/9.7/en/mysql-get-host-info.html
const char * mysql_get_host_info(MYSQL *mysql) Description Returns a string describing the type of connection in use, including the server host name. Return Values A character string representing the server host name and the connection type.
https://dev.mysql.com/doc/c-api/9.7/en/mysql-insert-id.html
LAST_INSERT_ID() is not reset between statements because the value of that function is maintained in the server. Note The OK packet used in the client/server protocol holds information such as is used for session state tracking. uint64_t ...
https://dev.mysql.com/doc/c-api/9.7/en/mysql-library-end.html
Call it when you are done using the library (for example, after disconnecting from the server). Note To avoid memory leaks after the application is done using the library (for example, after closing the connection to the server), be sure to call ...
https://dev.mysql.com/doc/c-api/9.7/en/mysql-library-init.html
Note To avoid memory leaks after the application is done using the library (for example, after closing the connection to the server), be sure to call mysql_library_end() explicitly. In older MySQL versions, they were used for applications linked ...
https://dev.mysql.com/doc/c-api/9.7/en/mysql-list-fields.html
CR_SERVER_LOST The connection to the server was lost during the query. MYSQL_RES * mysql_list_fields(MYSQL *mysql, const char *table, const char *wild) Description Note mysql_list_fields() is deprecated and is subject to removal in a future version ...
https://dev.mysql.com/doc/c-api/9.7/en/mysql-list-tables.html
CR_SERVER_LOST The connection to the server was lost during the query. MYSQL_RES * mysql_list_tables(MYSQL *mysql, const char *wild) Description Returns a result set consisting of table names in the current database that match the simple regular ...