Search Results
https://dev.mysql.com/doc/c-api/8.4/en/mysql-options.html
MYSQL_REPORT_DATA_TRUNCATION (argument type: bool *) Enable or disable reporting of data truncation errors for prepared statements using the error member of MYSQL_BIND structures. int mysql_options(MYSQL *mysql, enum mysql_option option, const void ...
https://dev.mysql.com/doc/c-api/8.4/en/mysql-plugin-options.html
If the plugin does not have an option handler, an error occurs. If the plugin has an option handler, that handler should also return zero for success and 1 if an error occurred. int mysql_plugin_options(struct st_mysql_client_plugin *plugin, const ...
https://dev.mysql.com/doc/c-api/8.4/en/mysql-query.html
int mysql_query(MYSQL *mysql, const char *stmt_str) Description Executes the SQL statement pointed to by the null-terminated string stmt_str. Normally, the string must consist of a single SQL statement without a terminating semicolon (;) or \g. If ...
https://dev.mysql.com/doc/c-api/8.4/en/mysql-real-query.html
int mysql_real_query(MYSQL *mysql, const char *stmt_str, unsigned long length) Description Note mysql_real_query() is a synchronous function. Its asynchronous counterpart is mysql_real_query_nonblocking(), for use by applications that require ...
https://dev.mysql.com/doc/c-api/8.4/en/mysql-refresh.html
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 flushes tables or caches, or resets replication server information. The ...
https://dev.mysql.com/doc/c-api/8.4/en/mysql-reload.html
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 instead. CR_SERVER_LOST The connection to the server was lost during the ...
https://dev.mysql.com/doc/c-api/8.4/en/mysql-select-db.html
int mysql_select_db(MYSQL *mysql, const char *db) Description Causes the database specified by db to become the default (current) database on the connection specified by mysql. In subsequent queries, this database is the default for table ...
https://dev.mysql.com/doc/c-api/8.4/en/mysql-shutdown.html
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. MySQL servers support only one type of shutdown; shutdown_level must ...
https://dev.mysql.com/doc/c-api/8.4/en/mysql-stat.html
const char * mysql_stat(MYSQL *mysql) Description Returns a character string containing information similar to that provided by the mysqladmin status command. This includes uptime in seconds and the number of running threads, questions, reloads, ...
https://dev.mysql.com/doc/c-api/8.4/en/mysql-stmt-bind-named-param.html
bool mysql_stmt_bind_named_param(MYSQL_STMT *stmt, MYSQL_BIND *binds, unsigned n_params, const char **names) Description mysql_stmt_bind_named_param() sets up unnamed and named (query attributes) bind parameters for prepared statements. This ...