@lokeshjoshi
i think sometimes database server (MYSQL Server) going offline, please check with your hosting company, if database is corrupted then showing different error, "error establishing a database connection" means cannot connect to the database