Common Errors

“Base table or view not found” when installing a new Magento 2

The error

When installing a fresh instance of Magento 2 you may get one of the following error messages:

[PDOException] SQLSTATE[42S02]: Base table or view not found: 1146 Table 'magento.store_website' doesn't exist
Code language: plaintext (plaintext)

That’s weird, you say? Of course the table store_website doesn’t exist yet, because you were just trying to install Magento. So, where does that exception come from?