You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
If you're running some tests involving a MySQL database with a low value for the MAX_USER_CONNECTIONS option, then you will encounter the following exception:
PDOException: SQLSTATE[HY000] [1226] User 'max_connections_user' has exceeded the 'max_user_connections' resource (current value: 5)
For example, if you have 10 database tests and a connection limit set to 5, then the 6th test (and the next ones) will fail with the exception above. It seems like Laravel isn't properly closing the previous connections, or not in time.
Open your MySQL console and run the following commands:
CREATEDATABASEmax_connections_db;
CREATEUSER 'max_connections_user'@'localhost' WITH MAX_USER_CONNECTIONS 5;
GRANT ALL PRIVILEGES ON* . * TO 'max_connections_user'@'localhost';
Run the tests with phpunit, you should see the following exception:
PDOException: SQLSTATE[HY000] [1226] User 'max_connections_user' has exceeded the 'max_user_connections' resource (current value: 5)
The text was updated successfully, but these errors were encountered:
Description:
If you're running some tests involving a MySQL database with a low value for the
MAX_USER_CONNECTIONS
option, then you will encounter the following exception:For example, if you have 10 database tests and a connection limit set to 5, then the 6th test (and the next ones) will fail with the exception above. It seems like Laravel isn't properly closing the previous connections, or not in time.
Steps To Reproduce:
phpunit
, you should see the following exception:The text was updated successfully, but these errors were encountered: