I'm confused about concurrent MySQL connections

前端 未结 6 1676
走了就别回头了
走了就别回头了 2021-02-14 01:14

So, I read a book in Mysql and it says that there\'s a limit on how many concurrent users that can access a database.

Does that mean that If I have 20k users browsing i

6条回答
  •  眼角桃花
    2021-02-14 01:43

    If you get a Too many connections error when you try to connect to the mysqld server, this means that all available connections are in use by other clients.

    The number of connections permitted is controlled by the max_connections system variable. Its default value is 100. If you need to support more connections, you should set a larger value for this variable.

    You should ask your system administrators to do these changes only when necessary.

提交回复
热议问题