Error: has exceeded the 'max_user_connections'

Has anyone had this error?

Fatal error in exception handler. Check log for Exception at time 1490122120
Fatal error: Uncaught PDOException: SQLSTATE[HY000] [1226] User 'u662297310_admin' has exceeded the 'max_user_connections' resource (current value: 15) in /home/u662297310/public_html/vendor/doctrine/dbal/lib/Doctrine/DBAL/Driver/PDOConnection.php:43 Stack trace: #0 /home/u662297310/public_html/vendor/doctrine/dbal/lib/Doctrine/DBAL/Driver/PDOConnection.php(43): PDO->__construct('mysql:host=loca...', 'u662297310_admi...', 'HI68dnC9So', Array) #1 /home/u662297310/public_html/vendor/doctrine/dbal/lib/Doctrine/DBAL/Driver/PDOMySql/Driver.php(41): Doctrine\DBAL\Driver\PDOConnection->__construct('mysql:host=loca...', 'u662297310_admi...', 'HI68dnC9So', Array) #2 /home/u662297310/public_html/vendor/doctrine/dbal/lib/Doctrine/DBAL/Connection.php(360): Doctrine\DBAL\Driver\PDOMySql\Driver->connect(Array, 'u662297310_admi...', 'HI68dnC9So', Array) #3 /home/u662297310/public_html/vendor/doctrine/dbal/lib/Doctrine/DBAL/Connection.php(749): Doctrine\DBAL\Connection->connect() #4 /home/u662297310/public_html/vendor/elgg/elgg/engine/cl in /home/u662297310/public_html/vendor/doctrine/dbal/lib/Doctrine/DBAL/Driver/AbstractMySQLDriver.php on line 115

Agradeceria se alguém pudesse me explicar esse erro.

  • That's an error from the MySQL server due to the max allowed concurrent connections being set too low for your site to properly work. You would have to increase the value of max_connections in the MySQL server config my.cnf. You might also want to set a value for wait_timeout if not already set or decrease the value if set. The wait_timeout value is the time in seconds the server waits before closing an unused connection. Default is 28800 seconds (8 hours) which means that it might not be ablue to open a new connection (due to the limit of 15 set for max_connections) even if there are less users on your site. Setting wait_timeout = 600 works for me.

    Increasing max_connections will result in more memory being used by the MySQL server. So, be careful with increasing.

    If you are on a shared server with no permission to alter my.cnf of the MySQL server, you would have to get in contact with the support to ask for help. If they don't allow more than 15 connections you might need to change your hosting plan or hoster.