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)

Heroku

This site is built on Heroku

Join the ranks of developers at Salesforce, Airbase, DEV, and more who deploy their mission critical applications on Heroku. Sign up today and launch your first app!

Get Started

👋 Kindness is contagious

Please leave a ❤️ or a friendly comment on this post if you found it helpful!

Okay