TiDB Compatibility
This plugin is an official tool provided by PingCAP, designed to solve compatibility issues between TiDB and WordPress.
Use with caution
TiDB Compatibility works, but test it on a staging site before relying on it in 2026. It runs on 80+ sites, is rated 5/5 and was last updated 1 month ago, and scores 59/100 on our health check.
- Momentum — downloads up 526% vs the previous 30 days
- Small user base (80+ active installs)
- Very few reviews so far
- Only tested up to WordPress 6.8 (latest is 7.1)
How does it stack up?
Side-by-side on installs, updates, ratings & supportDaily downloads
Download spikes usually follow a new release — each site that auto-updates counts as a download.
Rankings
Where TiDB Compatibility stands todayWordPress.org search rankings
Live position in the plugin search, top 100| Keyword | Position |
|---|---|
| database | >100 |
| sql | #67 |
| tidb | #1 |
Version adoption
Share of active sites per release.
Rating breakdown
★★★★★★★★★★ 5 from 1 reviews
About TiDB Compatibility
From the official readme · v1.0.3Description
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_DISABLEastrueinwp-config.phpto switch the rewrite off. - Use the
tidb_compatibility_enabledfilter (from a plugin or must-use plugin, not a theme) to override the TiDB detection. - With
WP_DEBUGenabled, 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
Contribute to this plugin on github.com/pingcap/wordpress-tidb-plugin
Changelog
1.0.3
- Security: count found posts from the executed query, so pagination totals no longer include posts hidden by query filters or suppress_filters
- Security: only strip the leading SQL_CALC_FOUND_ROWS keyword, so string literals in queries are never modified
- Only activate on TiDB, add the WTC_DISABLE constant and tidb_compatibility_enabled filter
- Log activation, deactivation and count query fallbacks or failures
1.0.2
- Update README, tags
1.0.1
- Update README, tags and compatibility info
For developers
Is this your plugin? Show off the numbers.
Add a live badge to your site, docs or GitHub README. It updates on its own — no account needed.
Best TiDB Compatibility alternatives
All database plugins →FAQ
TiDB Compatibility: quick answers
Straight answers, pulled from live WordPress.org data.
Source: WordPress.org
Is TiDB Compatibility free?
Yes. TiDB Compatibility is free to download and use from the official WordPress.org plugin directory.
Is TiDB Compatibility safe to use in 2026?
TiDB Compatibility works, but test it on a staging site before relying on it in 2026. It runs on 80+ sites, is rated 5/5 and was last updated 1 month ago, and scores 59/100 on our health check.
How many websites use TiDB Compatibility?
TiDB Compatibility is active on 80+ WordPress websites and has been downloaded 4,260 times since it launched in March 2024. It was downloaded 1,828 times in the last 30 days.
Does TiDB Compatibility work with WordPress 7.1?
TiDB Compatibility is officially tested up to WordPress 6.8.13, while the latest release is 7.1.5. It may still work, but try it on a staging site first.
What PHP version does TiDB Compatibility need?
TiDB Compatibility requires PHP 7.0 or higher. Most hosts run PHP 8.x today, so it works on any modern WordPress hosting.
When was TiDB Compatibility last updated?
The latest version, 1.0.3, was released on November 2, 2026 (1 month ago).
Who makes TiDB Compatibility?
TiDB Compatibility is developed and maintained by xuliwen.
What are the best alternatives to TiDB Compatibility?
The most popular alternatives to TiDB Compatibility are Search Regex (100K+ installs), WP-Sweep (100K+ installs) and Advanced Database Cleaner (100K+ installs).
Powered by PageForge
One template and a spreadsheet. A real page for every search.
PageForge turns each row of a CSV into a WordPress page with its own title, URL, SEO fields and schema, built on the layout you already designed. Free on WordPress.org.
- CSV and XLSX, plus Google Sheets on Professional and Enterprise
- Its own title, URL, SEO fields and schema for every page
- Works with the block editor, Elementor, Divi and Avada
- Free on WordPress.org, no credit card
