db-command icon indicating copy to clipboard operation
db-command copied to clipboard

Performs basic database operations using credentials stored in wp-config.php.

Results 30 db-command issues
Sort by recently updated
recently updated
newest added
trafficstars

**Describe your use case and the problem you are facing** I often use `wp db search` to determine if a certain shortcode, class, etc. is in use. These search results...

command:db
command:db-search

Hello. I recently used WP-CLI to run some SQL queries. After they run, I only got a success or failure message. If it was a success, I did not receive...

command:db-query
good-first-issue

# Bug Report #### Summary Running wp db import with the `--ssl` flag fails to properly connect to the database as expected. #### How to reproduce To reproduce, simply attempt...

bug
command:db
command:db-import

Hy guys! I'm trying run db commands between containers. I have 3 containers (wp / nginx / mysql). All works fine with de wpcli executable placed into wp root. Commands...

## Feature Request - [x ] Yes, I reviewed the [contribution guidelines](https://make.wordpress.org/cli/handbook/contributing/). **Describe your use case and the problem you are facing** When exporting databases, it is a common issue...

command:db-export

Hi @schlessera, When I use `wp db export` in Cmd windows get Error: ![eere](https://user-images.githubusercontent.com/949491/126065207-08e2b61e-846e-482c-a9c7-f7c862ee4934.JPG) There is a Double quote that Causes an error. When I run the `mysqldump` command separately,...

## Bug Report **Describe the current, buggy behavior** For #168 we've added logic to emulate WordPress Core's SQL mode compatibility hacks for the commands where we run the `mysql` binary...

bug
command:db-import

## Feature Request - [X] Yes, I reviewed the [contribution guidelines](https://make.wordpress.org/cli/handbook/contributing/). **Describe your use case and the problem you are facing** In WP 4.2, [the WP database collation was updated](https://make.wordpress.org/core/2015/04/02/the-utf8mb4-upgrade/)...

This code addresses #145 by adding a `get-rows` command to allow custom DB queries to get results formatted in a list, CSV, JSON, or a single column that can be...

command:db-query

With an obfuscated mysql credentials file in place all wp db query commands return with 'access denied'. Steps to reproduce: 1. Create an obfuscated file for root mysql user (enter...