unsigned long mysql_thread_id(MYSQL * mysql);
mysql - a mysql handle, which was previously allocated by mysql_init() or mysql_real_connect().
mysql
The mysql_thread_id() function returns the thread id for the current connection.
mysql_thread_id()
The current connection can be killed with mysql_kill(). If reconnect option is enabled the thread id might change if the client reconnects to the server.
mysql_kill()
mysql_options()
Last updated 4 days ago
Was this helpful?