query shouldn't require mysql/mariadb cli tools

Open
#319 5 comments 1 reaction 2 assignees View on GitHub

@swissspidy is already working on this.

Since Apr 2, 2026.

  • #320 by @copilot-swe-agent — open

Assessment

This issue has not been assessed yet.

Description

bug command:db-query

When mysql and mariadb CLI tools are unavailable, wp db query should fallback to using WPDB.

This is particularly important when running with drop-in database engines, and multi-server/partitioned database drivers such as HyperDB.

Dominant language
PHP
Stars
76
Forks
73
Avg merge
9h 31m
Merged PRs (30d)
2

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from wp-cli/db-command

All issues in wp-cli/db-command

Similar issues

More PHP issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.