First, check the site URL, database name, user, and password in WordPress, then...
https://www.bookmarkidea.win/if-wordpress-shows-error-establishing-a-database-connection-first-check
First, check the site URL, database name, user, and password in WordPress, then see if your host has an outage. If all look right, try deeper fixes: repair the database or check server limits