Help Center/ Relational Database Service/ User Guide (Ankara Region)/ FAQs/ Database Usage/ How Do I View Session IDs and Login and Logout Time of a Database?
Updated on 2024-04-11 GMT+08:00

How Do I View Session IDs and Login and Logout Time of a Database?

  • View database login and logout time in SQL audit logs. For details about how to enable SQL audit, see Enabling the SQL Audit Function.
  • To view sessions, run the show processlist command in the database.