# How to change WordPress DB prefix during provisioning

**URL:** https://discourse.roots.io/t/how-to-change-wordpress-db-prefix-during-provisioning/8247
**Category:** trellis
**Created:** 2016-12-02T19:41:25Z
**Posts:** 16
**Showing post:** 6 of 16

## Post 6 by @ben — 2016-12-02T20:28:15Z

See:

> [@Custom env variables trellis](https://discourse.roots.io/t/custom-env-variables-trellis/6330/2):
>
> If you want custom variables in the .env file created on deploy, each WP site will create env variables using the [wordpress\_env\_defaults](https://github.com/roots/trellis/blob/fc44e94d6f174792b00833d79a89dd92d4b1daf8/deploy.yml#L16-L23) from deploy.yml. To override or add to these env variables, you can edit group\_vars/\<environment\>/wordpress\_sites.yml. For example, if for example.com you wanted to override the default db\_name and add a new var new\_env\_var, you could add this for the site example.com: wordpress\_sites: example.com: ... env: db\_name: override\_name new\_env\_var: fo…

Also `env` in [https://roots.io/trellis/docs/wordpress-sites/](https://roots.io/trellis/docs/wordpress-sites/)

---

_[View the full topic](https://discourse.roots.io/t/how-to-change-wordpress-db-prefix-during-provisioning/8247)._
