HyperDB
HyperDB is an advanced database class that supports replication, failover, load balancing, and partitioning.
Envisager une alternative
HyperDB shows warning signs in 2026 — compare the alternatives below before installing. It runs on 10+ sites, is rated 4.1/5 and was last updated 4 years ago, and scores 31/100 on our health check.
- Petite base d'utilisateurs (plus de 10 installations actives)
- Pas de mise à jour dans 4 ans
- Uniquement testé jusqu'à WordPress 6,0 (le dernier est de 7,1)
Comment s'accumule-t-il ?
Côte à côte sur les installations, les mises à jour, les évaluations et le supportTéléchargements quotidiens
Les pics de téléchargement suivent généralement une nouvelle version - chaque site qui met à jour automatiquement compte comme un téléchargement.
Classements
Where HyperDB stands todayWordPress.org Classements de recherche
Position en direct dans la recherche de plugins, Top 100| Mot-clé | Position |
|---|---|
| availability | >100 |
| mysql | >100 |
| performance | >100 |
| scaling | >100 |
| WordPress.com | >100 |
Adoption de version
Part de sites actifs par version.
Répartition des notes
★★★★★★★★★★ 4.1 from 14 reviews
About HyperDB
À partir du Lisezmoi officiel · v1.8Description
HyperDB is a very advanced database class that replaces a few of the WordPress built-in database functions. The main differences are:
* HyperDB can be connect to an arbitrary number of database servers,
* HyperDB inspects each query to determine the appropriate database.
It supports:
- Read and write servers (replication)
- Configurable priority for reading and writing
- Local and remote datacenters
- Private and public networks
- Different tables on different databases/hosts
- Smart post-write master reads
- Failover for downed host
- Advanced statistics for profiling
- WordPress Multisite
It is based on the code currently used in production on WordPress.com with many MySQL servers spanning multiple datacenters.
Installation
Nothing goes in the plugins directory.
-
Enter a configuration in
db-config.php. -
Deploy
db-config.phpin the directory that holdswp-config.php. This may be the WordPress root or one level above. It may also be anywhere else the web server can see it; in this case, defineDB_CONFIG_FILEinwp-config.php. -
Deploy
db.phpto the/wp-content/directory. Simply placing this file activates it. To deactivate it, move it from that location or move the config file.
Any value of WP_USE_MULTIPLE_DB will be ignored by HyperDB.
Journal de modifications
1.9
- Restore the behavior where we retry failed connection attempts to masters;
- Unbreak the logic for marking servers as down – in r2625068 the key for marking server as down was mistakenly changed to “server_readonly_$host$port” instead of “server_state_$host$port”
- If all masters are marked as read-only, ignore the read-only flag and still try to connect; otherwise we might end up incorrectly breaking the master connections for 2 minutes (APCu cache time) if we had temporarily set read-only on them;
- Fix a bug where having $dbhname in the server state keys can delay marking server as down or read_only by doing it once for all possible datasets and operations instead of once for the host+port;
- Fix a bug where we could mark server as read-only even though the ER_OPTION_PREVENTS_STATEMENT error was returned for a different reason; now we match to make sure we actually have ‘read-only’ in the returned error;
- Fix a bug where the correct tracking of the unique read-only servers or lagged slaves might fail if we have duplicate servers for the same dataset;
- Fix a bug where we would not mark masters as read-only in HyperDB if they were set read-only on the server side after we already opened a connection;
- Fix a bug where we might stop respecting the minimum configured amount of retries per dataset;
- Revert the persistent unused_servers logic which was added in HyperDB 1.8 because: it can cause connection failures when the available servers are exhausted, we might use servers with wrong priorities, and not see newly added servers to HyperDB. Some examples of conditions which would trigger these behaviors include: server-side disconnects on timeout; when we manually disconnect open connections in long-running scripts; when we switch between different datasets on the same remote MySQL server; we’ve gone over the configured max_connections and started disconnecting existing connections to accomodate new ones;
- Make sure the read_only and the downed logic still works in environments which don’t have APCu or APCu is badly fragmented by adding local caching
- Correct the dbh property type
- PHP 8.0 compatibility for call_user_func_array() and db_connections attribute
1.8
- Support for fallback master connections
- Add support for marking servers read-only
- Fix the issue when
do_action()is not available - Use APCu to cache the results of server responsiveness
- Add support for the
utf8mb4server capability
1.7
- Add support for information_schema and transactions
- Requires WordPress 4.2 for wpdb::get_table_from_query()
1.6
- Add support for MYSQL_CLIENT_FLAGS which was added to wpdb in [21609]
- Fix PHP 7.3 Notice
1.5
- Fix WordPress 4.8.3 SQLi vulnerability
- Add action for SQL logging
- Never db_connect for SELECT FOUND_ROWS()
- Better cleanup when disconnecing db connections
1.4
- Additional logging for HyperDB failures and do not save “null” queries.
Pour les développeurs
Est-ce votre plugin ? Montrez les chiffres.
Ajoutez un badge en direct à votre site, docs ou github readme. Il se met à jour par lui-même - aucun compte n'est nécessaire.
Best HyperDB alternatives
All availability plugins →FAQ
HyperDB: quick answers
Réponses directes, extraites des données en direct WordPress.org.
Source : WordPress.org
Is HyperDB free?
Yes. HyperDB is free to download and use from the official WordPress.org plugin directory.
Is HyperDB safe to use in 2026?
HyperDB shows warning signs in 2026 — compare the alternatives below before installing. It runs on 10+ sites, is rated 4.1/5 and was last updated 4 years ago, and scores 31/100 on our health check.
How many websites use HyperDB?
HyperDB is active on 10+ WordPress websites and has been downloaded 196,386 times since it launched in May 2016. It was downloaded 1,157 times in the last 30 days.
Does HyperDB work with WordPress 7.1?
HyperDB is officially tested up to WordPress 6.0.19, while the latest release is 7.1.5. It may still work, but try it on a staging site first.
When was HyperDB last updated?
The latest version, 1.8, was released on October 12, 2022 (4 years ago).
Who makes HyperDB?
HyperDB is developed and maintained by Automattic.
What are the best alternatives to HyperDB?
The most popular alternatives to HyperDB are Availability Datepicker (10K+ installs), Booqable Rental Plugin (1K+ installs) and Twice Commerce (300+ installs).
Propulsé par PageForge
Un modèle et une feuille de calcul. Une vraie page pour chaque recherche.
PageForge transforme chaque ligne d'un CSV en une page WordPress avec son propre titre, URL, SEO et schéma, construit sur la mise en page que vous Déjà conçu. Gratuit sur WordPress.org.
- CSV et XLSX, plus Google Sheets sur les professionnels et les entreprises
- Son propre titre, URL, SEO champs et schéma pour chaque page
- Fonctionne avec l'éditeur de blocs, Elementor, Divi et Avada
- Gratuit sur WordPress.org, pas de carte de crédit
