The error appears when WordPress is unable to read or write the database correctly. It signals that the MySQL or MariaDB tables are damaged, the connection details are wrong, or a process interrupted a query.
When the database is corrupted WordPress stops loading core data. The result is a blank screen, an error message in the admin area, or missing content on the site.