WordPress plugin intelligence profile

TiDB Compatibility

This plugin is an official tool provided by PingCAP, designed to solve compatibility issues between TiDB and WordPress.

WP PlugIndex snapshot

Current directory snapshot

Tested up to WordPress 6.8
Current version1.0.3
WordPress coverageTested up to WordPress 6.8
Minimum stackWP 4.7 · PHP 7.0
Directory statusactive
Last directory update2 Nov 202611h ago
Active installations80Adoption metric — not a quality score
WordPress.org rating5.0 / 5 from 1 ratings
Official packageDirect from WordPress.org

Repository metrics are context, not quality scores. Active installations measure adoption and can strongly reflect a plugin’s age and historical popularity. Ratings, recent updates and “Tested up to” metadata also do not guarantee modern code, error-free operation, security, feature completeness or suitability for a particular site. Why active installs don’t tell the whole story →

WP PlugIndex currently records TiDB Compatibility version 1.0.3 as active, updated 11h ago and tested up to WordPress 6.8.

Overview

About this plugin

TiDB is a high-performance database that is compatible with the MySQL protocol. Since MySQL has deprecated the SQL_CALC_FOUND_ROWS function, TiDB also has no intention of offering the SQL_CALC_FOUND_ROWS function. This leads to an error in WordPress when using TiDB, indicating that SQL_CALC_FOUND_ROWS is not supported, and submissions cannot be displayed correctly.

WordPress is also currently working on this issue, but it seems that more time is needed. #47280 Remove usage of deprecated MySQL SQL_CALC_FOUND_ROWS from WP_Query

This plugin solves the issue of TiDB not providing the SQL_CALC_FOUND_ROWS function. Once this plugin is activated, parts of WP_Query that use SQL_CALC_FOUND_ROWS will be replaced with the COUNT(*) function.

This plugin is entirely based on the method mentioned by @akramipro in the article, and this solution works perfectly and addresses the issue. I’ve turned this method into a plugin so that those using TiDB can easily resolve this problem. Many thanks to @akramipro for the excellent work, and I hope the official WordPress team can address this issue sooner.

Configuration

The plugin only rewrites queries when the database server reports itself as TiDB.

  • Define WTC_DISABLE as true in wp-config.php to switch the rewrite off.
  • Use the tidb_compatibility_enabled filter (from a plugin or must-use plugin, not a theme) to override the TiDB detection.
  • With WP_DEBUG enabled, the plugin logs to the PHP error log when it is inactive, when it keeps the core count query, and when its count query fails. Activation and deactivation are always logged.

Contribute

com/pingcap/wordpress-tidb-plugin

WordPress.org metadata

Plugin tags

Topics listed for this plugin in the WordPress.org directory.

  • database
  • sql
  • tidb
Compatibility & maintenance

Compatibility & maintenance

Tested up to WordPress 6.8

Not yet marked as tested with WordPress 7.1. WordPress.org currently lists Tested up to 6.8.

Current WordPress releaseWordPress 7.1
WordPress.org Tested up to6.8
Minimum requirementsWordPress 4.7 · PHP 7.0
Update activity2 Nov 202611h ago

“Tested up to” is directory metadata supplied by the plugin author. WP PlugIndex does not turn an older declaration into a claim that the plugin is incompatible.

Changes recorded by WP PlugIndex

Recent tracked changes

Version1.0.21.0.3
WordPress compatibility6.8.86.8.12
PHP requirement6.8.17.0
Tracking & source

WP PlugIndex tracks public WordPress.org directory metadata and records selected version, compatibility and availability changes as they are detected.

Plugin watchlist

Watch this plugin

Sign in to your WP PlugIndex account or create a free account. Free accounts can watch up to 5 plugins and see what changed.

Watch limit

Watchlist limit reached

You have reached your current active watch limit.