My site is running in wordpress... it was running fine for past 3 months... yesterday suddenly my site showed me "Error establishing a database connection"... i did not changed anything in my site... everything are perfect... i contacted my host and they have foolish development team... they don't know to fix the error... my site lost all traffic... please say me how to correct his problem....
I think this has something to do either with the mysql configuration file, or your wordpress db configuration file is wrongly setup (db host, db name, db user, db password or table prefix).
Hey, this happens some times when server is being overloaded, if this is not the case then do one thing check your config.php file located in public_html or ask your provider to update their php and database version