Plesk

A WordPress website in Plesk fails to load: Error establishing a database connection

Symptoms

Cause

The table mentioned in the error message is missing:

# plesk db
MariaDB [psa]> use wordpress_db
MariaDB [wordpress_db]> select * from wordpress_db.K5p5GRQg_sitemeta;
ERROR 1146 (42S02): Table 'wordpress_db.K5p5GRQg_sitemeta' doesn't exist

Resolution

Apply one of the following solutions: