Search Results
https://dev.mysql.com/doc/c-api/8.4/en/mysql-get-ssl-session-data.html
void * mysql_get_ssl_session_data(MYSQL *, unsigned int n_ticket, unsigned int *out_len) Description mysql_get_ssl_session_data() permits SSL session reuse by extracting a ticket from an established session and submitting that ticket when ...This ...
https://dev.mysql.com/doc/c-api/8.4/en/mysql-load-plugin.html
The plugin API does not require a connection to a MySQL server, but this structure must be properly initialized. struct st_mysql_client_plugin * mysql_load_plugin(MYSQL *mysql, const char *name, int type, int argc, ...) Description Loads a MySQL ...
https://dev.mysql.com/doc/c-api/8.4/en/mysql-num-fields.html
You can get the number of columns either from a pointer to a result set or to a connection handler. You would use the connection handler if mysql_store_result() or mysql_use_result() returned NULL (and thus you have no result set pointer). unsigned ...
https://dev.mysql.com/doc/c-api/8.4/en/mysql-refresh.html
CR_SERVER_LOST The connection to the server was lost during the query. int mysql_refresh(MYSQL *mysql, unsigned int options) Description Note mysql_refresh() is deprecated and is subject to removal in a future version of MySQL. This function ...
https://dev.mysql.com/doc/c-api/8.4/en/mysql-reload.html
CR_SERVER_LOST The connection to the server was lost during the query. int mysql_reload(MYSQL *mysql) Description Asks the MySQL server to reload the grant tables. Use mysql_real_query() or mysql_query() to issue an SQL FLUSH PRIVILEGES statement ...
https://dev.mysql.com/doc/c-api/8.4/en/mysql-rollback.html
In particular, if the value of completion_type is RELEASE (or 2), the server performs a release after terminating a transaction and closes the client connection. Call mysql_close() from the client program to close the connection from the client side. The action of this function is subject to the value of the completion_type system ...
https://dev.mysql.com/doc/c-api/8.4/en/mysql-set-server-option.html
int mysql_set_server_option(MYSQL *mysql, enum enum_mysql_set_option option) Description Enables or disables an option for the connection. Enabling multiple-statement support with MYSQL_OPTION_MULTI_STATEMENTS_ON does not have quite the same effect ...Option Description MYSQL_OPTION_MULTI_STATEMENTS_ON Enable multiple-statement support MYSQL_OPTION_MULTI_STATEMENTS_OFF Disable multiple-statement support If you enable multiple-statement support, you should retrieve results from calls to mysql_real_query() or mysql_query() by using a loop that calls mysql_next_result() to determine whether there are more ...
https://dev.mysql.com/doc/c-api/8.4/en/mysql-shutdown.html
CR_SERVER_LOST The connection to the server was lost during the query. int mysql_shutdown(MYSQL *mysql, enum mysql_enum_shutdown_level shutdown_level) Description Note mysql_shutdown() is deprecated and will be removed in a future version of MySQL.
https://dev.mysql.com/doc/c-api/8.4/en/mysql-stmt-execute.html
CR_SERVER_LOST The connection to the server was lost during the query. The mysql variable is assumed to be a valid connection handler. int mysql_stmt_execute(MYSQL_STMT *stmt) Description mysql_stmt_execute() executes the prepared query associated ...
https://dev.mysql.com/doc/c-api/8.4/en/mysql-stmt-fetch.html
CR_SERVER_LOST The connection to the server was lost during the query. (This example expects to retrieve the two rows inserted by the example shown in Section 6.4.11, “mysql_stmt_execute()”.) The mysql variable is assumed to be a valid ... int ...