MySQL concepts: session vs connection

前端 未结 1 2008
清酒与你
清酒与你 2021-02-01 17:38

I\'m a bit confused by MySQL concepts: session vs connection.

When talking about connecting to MySQL, we use connection terminology, connection pool, etc.

However

1条回答
  •  天命终不由人
    2021-02-01 18:08

    A session is just a result of a successful connection. Any MySQL client requires some connection settings to establish a connection and after the connection has been established it acquires a connection id (thread id) and some context which is called session.

    0 讨论(0)
提交回复
热议问题