# WP-CLI support with MySQL sockets in Local 5

**URL:** <https://community.localwp.com/t/wp-cli-support-with-mysql-sockets-in-local-5/24116>\
**Category:** Support\
**Tags:** wp-cli, mysql\
**Created:** [January 28, 2021, 4:57pm UTC](https://community.localwp.com/t/wp-cli-support-with-mysql-sockets-in-local-5/24116 "2021-01-28T16:57:51Z")\
**Posts on this page:** 1\
**Showing post:** 4

<div class="post-metadata">

**Author:** ![henscu](https://sea1.discourse-cdn.com/flex019/user_avatar/community.localwp.com/henscu/32/9054_2.png) [@henscu](https://community.localwp.com/u/henscu)\
**Post date:** [March 25, 2021, 12:22am UTC](https://community.localwp.com/t/wp-cli-support-with-mysql-sockets-in-local-5/24116/4 "2021-03-25T00:22:48Z")

</div>

Thanks, Ben.

Just one modification to your instructions is required for those of us who are using Local with [Roots Bedrock](https://roots.io/guides/local-bedrock-development-with-local-by-flywheel/) WordPress.

When using Bedrock with Local, the Bedrock **wp** directory is in a different location from the standard Local setup, but wp-cli works if I just add the path to Bedrock’s wp directory using the **–path** parameter as shown below… (the command is being run from the …/app/public directory that Site Shell opens in)…

```
       wp db tables --path='../bedrock/web/wp'
```

---

_[View the full topic](https://community.localwp.com/t/wp-cli-support-with-mysql-sockets-in-local-5/24116)._
