🔥 Black Friday Sale: Get 65% OFF Any PageForge Pro Plan! Use code BF65 Claim Offer →
Account Get it free
TiDB Compatibility icon
Actively maintained Tested up to 6.8.13 #81 in database

TiDB Compatibility

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

Active installs80+10+ tier
Downloads · 30d1.8K▲ 6.3× vs prev. 30d
Rating5/51 reviews
Health score59/100Fair
All-time downloads4.3KSince Mar 2024
Support resolved—No recent threads
RequiresWP 4.7PHP 7.0+
Downloads · 7d431▲ +9.1% week over week
Our verdict

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 & support

Daily downloads

3469104Sep 4Oct 18Dec 2
Yesterday75
Daily average (1y)9
Peak day139Nov 2, 2026
Last 12 months3.2K

Download spikes usually follow a new release — each site that auto-updates counts as a download.

Rankings

Where TiDB Compatibility stands today

WordPress.org search rankings

Live position in the plugin search, top 100
KeywordPositionCompeting pluginsCategory
database >100 10,000 Best database plugins →
sql #67 2,825 Best sql plugins →
tidb #1 2 Best tidb plugins →

Version adoption

Share of active sites per release.

  • 1.0100.0%

Rating breakdown

★★★★★★★★★★ 5 from 1 reviews

  • 5★100.0%
  • 4★0.00%
  • 3★0.00%
  • 2★0.00%
  • 1★0.00%

About TiDB Compatibility

From the official readme · v1.0.3

Description

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

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

Full changelog on WordPress.org →

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.

Active installs badge Rating badge Health score badge

Best TiDB Compatibility alternatives

All database plugins →
Alternatives
Rank Plugin Active installs Rating Updated Health
1 Search Regex Search Regex Search Regex adds a powerful set of search and replace functions to WordPress posts, pages… by John Godley 100K+ ★★★★★★★★★★ 4.7 (101) 2 months ago 76
2 WP-Sweep WP-Sweep WP-Sweep allows you to clean up unused, orphaned and duplicated data in your WordPress. It… by Lester Chan 100K+ ★★★★★★★★★★ 4.7 (138) 3 months ago 85
3 Advanced Database Cleaner – Optimize & Clean Database to Speed Up Site Performance Advanced Database Cleaner Clean database by deleting orphaned data such as 'revisions', 'expired transients'… by Younes JFR. 100K+ ★★★★★★★★★★ 4.9 (2K) 1 week ago 89
4 Go Live Update Urls Go Live Update Urls Change the domain on your site with one click. by Mat Lipe 90K+ ★★★★★★★★★★ 4.5 (59) 1 month ago 86
5 BackUpWordPress BackUpWordPress Simple automated backups of your WordPress-powered website. by Tom Willmot 80K+ ★★★★★★★★★★ 4.7 (1.4K) 4 weeks ago 80
6 Database Backup for WordPress Database Backup for WordPress Database Backup for WordPress is your one-stop database backup solution for WordPress. by WP Engine 60K+ ★★★★★★★★★★ 4.5 (66) 8 months ago 61
7 Vsourz Form Entries for Contact Form 7 Vsourz Form Entries for Contact Form 7 Save Contact Form 7 submissions to the database and manage entries from the WordPress admin. by Vsourz Digital 60K+ ★★★★★★★★★★ 4.5 (44) 4 weeks ago 78
8 Optimize Database after Deleting Revisions Optimize Database after Deleting Revisions One-click database optimization with precise revision cleanup and flexible scheduling… by NerdPress 50K+ ★★★★★★★★★★ 4.7 (181) 7 months ago 69
9 WP-DBManager WP-DBManager Manages your WordPress database. by Lester Chan 50K+ ★★★★★★★★★★ 4.4 (95) 4 months ago 77
10 WP phpMyAdmin WP phpMyAdmin [ ✅ 𝐒𝐄𝐂𝐔𝐑𝐄 𝐏𝐋𝐔𝐆𝐈𝐍𝐒 𝐵𝓎 𝒫𝓊𝓋𝑜𝓍 ] phpMyAdmin - Database Browser & Manager (for MySQL & MariaDB) by Puvox Software 40K+ ★★★★★★★★★★ 4.6 (58) 1 month ago 85

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

↑↓ to move↵ to open