Confirm that the MySQL server is up, and the database is there, the user/pass combo is valid and can connect to that database. And that these are the correct values in the xenforo's config.php
The error could have happened during a MySQL server restart while it couldn't connect. Is it still down, do you still get these errors? or was it a one-off