How to fix «The default website isn't defined» on `bin/magento setup:install`?

Step 1

rm -f app/etc/env.php

Step 2

Re-create the MySQL database or add the --cleanup-database flag to the bin/magento setup:install command.

experienceleague.adobe.com/docs/commerce-operations/installation-guide/advanced.html