Error establishing database connection after changing sitename

I have changed my sitename. When I try to deploy I get the following error:

TASK [deploy : WordPress Installed?] *******************************************
System info:
  Ansible 2.2.1.0; Darwin
  Trellis at "Option to install WP-CLI packages"
---------------------------------------------------
Error: Error establishing a database connection. This either means that the
username and password information in your `wp-config.php` file is incorrect
or we can’t contact the database server at `localhost`. This could mean your
host’s database server is down.

I can still connect to database in sequel pro with the same username and password.

How do I debug this?

I’m not even sure Trellis seamlessly supports changing a site name off the top of my head, but you’d definitely need to re-provision at least before a deploy.

1 Like

Okey. Will reprovisioning reset the database?

Edit: Already answered here Does reprovisoning reset the database?