How to solve MySQL max_user_connections error

前端 未结 5 1356
花落未央
花落未央 2020-12-03 15:37

I\'m getting following error when I try to log onto phpMyAdmin.

User ** already has more than \'max_user_connections\' active connections

Could anyo

5条回答
  •  生来不讨喜
    2020-12-03 16:16

    This happens due to limit specified in the mysql configuration, the system variable max_user_connections.

    Solutions

    Killing the queries which are stuck at the backend is only a solution I would suggest if it is a SELECT query. Queries that change data, like UPDATE/DELETE/INSERT, are not to be killed.

    Secondly, you can use the command mysqladmin processlist to check what is going on inside mysql.

    If locking is causing your problem, you can check which engine you are using and change it to another. IBM's SolidDB documentation on table locks might help you. Though there may be another reason for this. (For example, perhaps your queries are taking too long because of an unoptimized query, or the table size is too big, or you have a spammed database).

提交回复
热议问题