mysql_thread_id

Syntax

unsigned long mysql_thread_id(MYSQL * mysql);

Description

The mysql_thread_id() function returns the thread id for the current connection.

circle-info

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.

See also

spinner

Last updated

Was this helpful?