How do I get the current ID logged in in mysql

How Do I get the current ID of the user logged in in mysql?

In MySQL, there is a system table called information_schema. processlist which shows the threads that are currently running. You can run a query against this system table that returns all of the Users that are currently have a connection running in the MySQL database.

This topic was automatically closed 182 days after the last reply. New replies are no longer allowed.