{"id":18408364,"url":"https://github.com/pingcap/wordpress-tidb-plugin","last_synced_at":"2025-04-07T09:32:52.876Z","repository":{"id":218532911,"uuid":"715672819","full_name":"pingcap/wordpress-tidb-plugin","owner":"pingcap","description":null,"archived":false,"fork":false,"pushed_at":"2024-02-08T05:19:27.000Z","size":40,"stargazers_count":12,"open_issues_count":0,"forks_count":1,"subscribers_count":11,"default_branch":"main","last_synced_at":"2025-03-22T16:02:21.871Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"PHP","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/pingcap.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null}},"created_at":"2023-11-07T15:53:00.000Z","updated_at":"2025-03-05T22:31:16.000Z","dependencies_parsed_at":"2024-01-29T14:02:00.264Z","dependency_job_id":null,"html_url":"https://github.com/pingcap/wordpress-tidb-plugin","commit_stats":null,"previous_names":["pingcap/wordpress-tidb-plugin"],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pingcap%2Fwordpress-tidb-plugin","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pingcap%2Fwordpress-tidb-plugin/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pingcap%2Fwordpress-tidb-plugin/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pingcap%2Fwordpress-tidb-plugin/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/pingcap","download_url":"https://codeload.github.com/pingcap/wordpress-tidb-plugin/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247626461,"owners_count":20969307,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-11-06T03:18:47.119Z","updated_at":"2025-04-07T09:32:52.610Z","avatar_url":"https://github.com/pingcap.png","language":"PHP","readme":"# TiDB Compatibility Plugin for WordPress \nTiDB Compatibility Plugin for WordPress\n\n[TiDB](https://en.pingcap.com) 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.\n\nWordPress is also currently working on this issue, but it seems that more time is needed.\n[#47280 Remove usage of deprecated MySQL SQL_CALC_FOUND_ROWS from WP_Query](https://github.com/WordPress/wordpress-develop/pull/3863)\n\nThis 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.**\n\nThis plugin is entirely based on the method mentioned by [@akramipro](https://github.com/AkramiPro) in the [article](https://core.trac.wordpress.org/ticket/47280), 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](https://github.com/AkramiPro) for the excellent work, and I hope the official WordPress team can address this issue sooner.\n\n### How to install WordPress TiDB Plugin\n#### Manually Installing a WordPress Plugin\n\nDownload the Plugin: First, download the plugin from the source. It will typically be in a .zip format.\n\nAccess Your Website's File Manager: You can do this through your web hosting control panel (like cPanel) or via an FTP client.\n\nUpload the Plugin: Navigate to the 'wp-content/plugins' directory. Upload the plugin .zip file here.\n\nExtract the Plugin: After uploading, extract the .zip file. This will create a new folder with the plugin files.\n\nActivate the Plugin: Go to your WordPress admin area. Click on 'Plugins' in the menu, find your newly uploaded plugin and click 'Activate'.\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpingcap%2Fwordpress-tidb-plugin","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fpingcap%2Fwordpress-tidb-plugin","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpingcap%2Fwordpress-tidb-plugin/lists"}