GSP
Quick Navigator

Search Site

Unix VPS
A - Starter
B - Basic
C - Preferred
D - Commercial
MPS - Dedicated
Previous VPSs
* Sign Up! *

Support
Contact Us
Online Help
Handbooks
Domain Status
Man Pages

FAQ
Virtual Servers
Pricing
Billing
Technical

Network
Facilities
Connectivity
Topology Map

Miscellaneous
Server Agreement
Year 2038
Credits
 

USA Flag

 

 

Man Pages
mysql_reset_connection(3) MariaDB Connector/C mysql_reset_connection(3)

mysql_reset_connection - Resets connection and clears session state


#include <mysql.h>
int mysql_reset_connection(MYSQL * mysql);

    

Resets the current connection and clears session state. Similar to mysql_change_user(3) or mariadb_reconnect(3), mysql_reset_connection() resets session status, but without disconnecting, opening, or reauthenticating.

On client side mysql_reset_connection() * clears pending or unprocessed result sets * clears status like affected_rows, info or last_insert_id * invalidates active prepared statements

On server side mysql_reset_connection() * drops temporary table(s) * rollbacks active transaction * resets autocommit mode * releases table locks * initializes session variables (and sets them to the value of corresponding global variables) * closes active prepared statements * clears user variables

mysql - a mysql handle, which was previously allocated by mysql_init(3) and connected by mysql_real_connect(3).

Returns zero on success, non zero if an error occurred.

This function was added in MariaDB Connector/C 3.0.0.

mariadb_cancel(3)
mysql_kill(3)
Version 3.2.2

Search for    or go to Top of page |  Section 3 |  Main Index

Powered by GSP Visit the GSP FreeBSD Man Page Interface.
Output converted with ManDoc.