Change db_password

Hello there, i tried to change the default db_password in production/vault.yml and i got an “Error establishing connection”.

How can i change the password? After i have build and provisioned…

Where did you see this? Please post the entire error message.

Error establishing a database connection

Just like having wrong password in config.php…

My question is, how can i change the db password, after i have provisioned

Thanks.

So you didn’t get any errors when re-provisioning or deploying after you updated the db_password?

You need to re-reprovision and deploy. Deploying makes sure that .env gets updated to tell WP to use the new password.

2 Likes