You are here : Cmysql/mysql.hmysql_list_processes

mysql_list_processes() - mysql/mysql.h

 Note


          As of MySQL 5.7.11, mysql_list_processes()
          is deprecated and will be removed in a future version of
          MySQL. Instead, use
          mysql_query() to execute a
          SHOW PROCESSLIST statement.NoteAs of MySQL 5.7.11, mysql_list_processes()
          is deprecated and will be removed in a future version of
          MySQL. Instead, use
          mysql_query() to execute a
          SHOW PROCESSLIST statement.mysql_list_processes()mysql_query()mysql_query()SHOW PROCESSLISTSHOW PROCESSLISTReturns a result set describing the current server threads. This
        is the same kind of information as that reported by
        mysqladmin processlist or a
        SHOW PROCESSLIST query.mysqladmin processlistmysqladmin processlistmysqladmin processlistSHOW PROCESSLISTSHOW PROCESSLISTYou must free the result set with
        mysql_free_result().mysql_free_result()mysql_free_result()


Syntax

MYSQL_RES *mysql_list_processes(MYSQL *mysql)


Example

 


Output / Return Value

 A MYSQL_RES result set for success.
        NULL if an error occurred.MYSQL_RESNULL


Limitations


Alternatives / See Also


Reference