site is crashing and trying to figure out why

a wordpress site that i am working on is continually crashing and giving error establishing database connection. is there an easy way to trouble shoot what is causing the issue?