The error you were having can be easily solved by reading this article and especially using all the general tips on your website as well:
If you don’t have a database on your hosting account, this article can help you create one:
Then after you configured it, you might need to import a database backup for the website to work fine with the database you created:
3 Likes