When WordPress throws up an error, it doesn't give much technical detail, and as a result, it can be difficult to debug. No error is more prevalent than the dreaded "Error establishing Database Connection", which causes the site to be completely unreachable.