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 37 db-command issues
Sort by recently updated
recently updated
newest added

In my workflow I rsync and use wp cli via SSH to import/export the database and then do a search-replace to update the URLs, etc... While it works perfectly I...

## 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** The `db query` command currently formats the results in...

command:db-query

The way options to the underlying `mysql*` tools are currently handled is extremely inconsistent. This is a first try at making everything more consistent and ensuring that all tools can...

command:db

When using the `wp db search` command to search only in a given table (eg. `wp_posts`), I'd like the output to only contain IDs so I can export them elsewhere...

command:db
good-first-issue
command:db-search
contributor-day

## Bug Report - [x] Yes, I reviewed the [contribution guidelines](https://make.wordpress.org/cli/handbook/contributing/). - [x] Yes, more specifically, I reviewed the guidelines on [how to write clear bug reports](https://make.wordpress.org/cli/handbook/bug-reports/). ### Describe the...

One of the most common tasks database administrators need to do is create user accounts for applications with full privileges to the application's database. I propose that we make that...

command:db
contributor-day

Hi, I tried to run `wp db optimize --quiet ` and `wp db repair --quiet ` but they both produce informational messages.

command:db
command:db-optimize
command:db-repair

Query command run through `assoc_args_to_str` get double quotes truncated and fail to execute. Using single quotes in the query prevent error. `Warning: Failed to get current character set of the...

Closes #158 Related https://github.com/wp-cli/wp-cli/issues/5859

command:db-search

**Describe the current, buggy behavior** Several `wp db *` commands don't work with sqlite. SQLite is in [testing fase](https://make.wordpress.org/core/2022/12/20/help-us-test-the-sqlite-implementation/) **Describe how other contributors can replicate this bug** - Install a...

command:db