What is Thread, Connection And Session In MySQL?

(Doc ID 2313202.1)

Last updated on OCTOBER 02, 2017

Applies to:

MySQL Server - Version 5.0 and later
Information in this document applies to any platform.

Goal

What's the meaning of Threads_connected and Threads_running? One mentions connections, the other threads:

The sleeping state means the threads is not running? How long I can release the sleeping thread '?

The thread is the same as the session ?

Solution

Sign In with your My Oracle Support account

Don't have a My Oracle Support account? Click to get started

My Oracle Support provides customers with access to over a
Million Knowledge Articles and hundreds of Community platforms