This error message is clear that your website is unable to connect to the database. However, solving this error can be tricky for beginners.
Usually, this occurs when a user has entered or modified their database credentials (database host, database username, and database password) incorrectly. Sometimes your database server could be unresponsive, or your database may have corrupted.
However, mostly it is incorrect database login credentials.
Keywords: Database errors, WordPress errors