This error means WordPress is having trouble connecting to its database.
A few things could cause it. Your database credentials might be incorrect, the database server could be temporarily unavailable, or the database itself might be corrupted.
Start by checking the database name, username, password and hostname in your wp-config.php file.
If those details are correct, check whether your database server is running properly. You can also contact your hosting provider to investigate possible server-side issues.
Don't make random changes to your database configuration. It's always better to identify the actual cause first.