Improvements to the database configuration assistant that runs during project creation.
- Addition:
DB_HOST
will use127.0.0.1
iflocalhost
fails to connect * - Addition: Checks the database connection earlier in the process, so now it happens before the .env file is actually written
- Addition: Offers to delete existing database tables if a database is being reused (useful for repetitive testing)
- Fix: Ignore some PHP-CS warning/errors because we're running outside of WordPress here
* Some development environments (e.g. Herd) do not work with localhost
connections if their PHP isn't configured with MySQL's socket path. Before this change developers needed to recognise the error and manually fix their .env during installation.