DEV Community

Cover image for PDO Exception
AKASH KAINTURA
AKASH KAINTURA

Posted on

PDO Exception

PDO Exception for Memory exhausted Due to SQL connection issue while trying to connect database.
Alt Text
In .env file we need to be specific about the credentials using for accessing the Database otherwise while running that the application can cause the server load and the memory limit related Error.
We can use that using the PHPUnit testing the connection in phpunit.xml to check if the credentials are used in the application or not.
Alt Text

Top comments (0)