Short answer: export your WordPress database as an SQL dump, store it somewhere separate from the live site, and verify that you can import it. For a one-off backup, phpMyAdmin is usually simplest. For large databases or repeatable jobs, use mysqldump or WP-CLI. Scheduled plugins or hosting services can automate the process, but you still need to check that backups are being created and perform test restores.
Antihost offers managed WordPress hosting with free migration, one-click staging and a 14-day free trial.
A database backup protects posts, pages, comments, menus, widgets, and most theme and plugin settings. It does not contain WordPress core files, themes, plugins, uploads, .htaccess, or wp-config.php. A complete site recovery therefore requires a compatible copy of those files as well as the database dump.
As an Amazon Associate I earn from qualifying purchases.
What’s actually slowing this PC down?
Pick the symptom - the matching free tool is one click away.
What a WordPress database backup contains
WordPress stores structured site content and settings in MySQL or MariaDB. Depending on the site and installed extensions, the database normally includes:
- Posts, pages, revisions, custom post types, categories, tags, and other taxonomies
- Comments and comment metadata
- Navigation menus and widget configuration
- Theme options and plugin settings
- Site configuration and user data
The database is only one layer of a WordPress installation. The file layer contains WordPress core, themes, plugins, uploaded media, .htaccess, and wp-config.php. An SQL export cannot restore a missing image file or plugin code. Keep the database dump with a matching file backup when you need disaster recovery, migration, or a rollback.
#1 Best Overall
- Read Before You Buy — No Video Output: These adapters support charging and USB 2.0 data transfer, but cannot transmit video signals. Except for standard USB webcams (which use USB data only), they are not compatible with HDMI/DisplayPort cables, video-capable USB-C hubs, or docking stations with video output.
- Convert USB-A Ports to USB-C: Designed to connect USB-C earphones, cables, flash drives, card readers, and other USB-C accessories to standard USB-A ports. Plug-and-play with no drivers or software required.
- Aluminum Alloy Housing: Built with a sturdy aluminum alloy shell that aids in heat dissipation and protects against daily wear and scratches. Designed to maintain a stable and secure connection.
- Compact & Travel-Friendly: The ultra-compact design allows the adapter to stay plugged into your device without blocking adjacent ports or adding bulk, reducing wear and tear on your original USB ports.
- 12-Month Warranty: Backed by a 12-month manufacturer warranty for peace of mind. Designed to meet strict quality control standards for reliable everyday performance.
Choose the backup method
| Method | Access required | Best fit | Automation and scale | Compression and destination | Files included? |
|---|---|---|---|---|---|
| phpMyAdmin through a hosting panel | Hosting control panel, such as cPanel or Plesk | Small and medium sites; occasional exports | Manual; the interface is approachable but less convenient for repeatable jobs | Exports SQL and may offer .gz or .bz2; you choose where to download it |
No |
mysqldump |
Shell access and database credentials | Large databases, migrations, scripts, and consistent repeatable backups | Easy to schedule with the server’s task scheduler; handles large exports more practically than a browser interface | Can stream directly through gzip or bzip2; you control protected storage | No |
WP-CLI wp db dump |
Shell access, WP-CLI, and a readable wp-config.php |
WordPress administrators already working on the server | Scriptable and suitable for scheduled jobs | Writes a SQL dump; shell tools can compress it and send it to your chosen storage | No |
| MySQL Workbench | Workbench installed locally and a network connection to MySQL or MariaDB | Administrators who prefer a desktop database tool | Manual unless combined with separate scheduling or scripts | Export and storage options depend on the Workbench workflow | No |
| Backup plugin or host service | WordPress administrator account or hosting account | People who need scheduled jobs without shell access | Convenient, but retention, destinations, multisite handling, and restore controls vary by product | May offer local, remote, or both; inspect the actual archive and retention policy | Some cover only the database; others offer full-site backups |
The practical distinction is control versus convenience. phpMyAdmin is usually easiest for a single export. mysqldump and WP-CLI are more repeatable and generally more suitable when the database is large. Plugins and host services reduce the chance of forgetting a job, but a green “successful” status is not proof that an archive can be downloaded or restored.
Prepare before exporting
- Confirm the site and database. Read the
DB_NAME,DB_HOST, and table-prefix values inwp-config.php. Record them with the backup so you do not import a dump into the wrong site later. - Choose protected storage. Keep the downloaded archive outside the publicly served web directory. Maintain another copy offline or in a separate remote location. Restrict file permissions because a database dump can contain usernames, email addresses, site settings, and other sensitive data.
- Plan around changes. WordPress recommends regular database backups and specifically recommends one before an upgrade. Also create a fresh export before a migration, bulk edit, plugin replacement, or risky database operation.
- Decide whether to pause writes. A busy store, membership site, or forum can change while an export runs. Use the host’s maintenance or consistency options when necessary, and note the export time so you know what state it represents.
- Check available disk space. The uncompressed SQL file can be substantially larger than a compressed archive, and a restore may require space for both the archive and the extracted file.
Back up with phpMyAdmin or a hosting panel
This is the most accessible manual route when your host exposes phpMyAdmin through cPanel, Plesk, or another control panel.
- Sign in to your hosting account and open phpMyAdmin. The exact menu name varies by host.
- In the left-hand database list, select the database used by WordPress. Match it to
DB_NAMEinwp-config.php; do not rely on a similar-looking database name. - Open the Export tab.
- Choose Quick for a straightforward export of the whole database. Choose Custom when you need to select tables, change output settings, or inspect compression options.
- Set the format to SQL. Unless you have a specific reason to omit tables, include every WordPress table, including tables created by plugins.
- Start the export and save the resulting
.sqlfile. Your host may instead provide a compressed.gzor.bz2download. - Rename the archive with the site and date, for example
example-site-2026-10-15.sql.gz, then move it out of the web root. - Record the database name, host, table prefix, export date, and WordPress version in a text file stored with the archive.
For a small or medium database, this workflow is usually sufficient. Browser-based exports can time out or hit upload and execution limits on very large databases; use a command-line export when that happens rather than repeatedly refreshing the interface.
Back up with mysqldump
With shell access, the standard command-line utility creates a portable SQL dump. Substitute the values from wp-config.php:
mysqldump --add-drop-table -h DB_HOST -u DB_USER -p DB_NAME > wordpress.sql
The -p option prompts for the password instead of placing it in the command itself. Enter it when prompted. Avoid putting a plaintext password in shell history, a world-readable script, or a process list.
Rank #2
- 5-in-1 USB-C Hub: Experience comprehensive connectivity featuring a Power Delivery input, two USB-A 2.0 ports, a USB-A 3.0 port, and an HDMI port. (Note: The USB-C power delivery input port is only for connecting an external wall charger to power your laptop and cannot power peripheral devices.)
- 90W Pass-Through Charging: Achieve optimal charging with 90W pass-through power to your laptop, supported by a total input of 100W, with the hub reserving 10W for operational efficiency. (Note: Wall charger not included.)
- Quick Data Transfers: Accelerate your productivity with rapid data transfers using a high-speed 5Gbps USB 3.0 port and two 480Mbps USB 2.0 ports.
- 4K HDMI Display: Enhance your visual experience with a hub capable of delivering 4K resolution at 30Hz in both mirror and extend modes. Please note that this hub is compatible with MacBook (macOS 12 and newer), Windows 10 and 11, ChromeOS, and laptops equipped with DP Alt Mode and Power Delivery. Note: This device is not compatible with Linux.
- What You Get: Anker USB-C Hub (5-in-1, 4K HDMI), welcome guide, 18-month warranty, and our friendly customer service.
Write a compressed dump
For a compressed archive, pipe the output through gzip:
Recommended Free Tools
mysqldump --add-drop-table -h DB_HOST -u DB_USER -p DB_NAME | gzip > wordpress.sql.gz
The WordPress handbook also documents bzip2:
mysqldump --add-drop-table -h DB_HOST -u DB_USER -p DB_NAME | bzip2 > wordpress.sql.bz2
For large backups, gzip is generally faster than bzip2, while bzip2 may produce a different compression ratio. The useful choice is the format your restore process and storage policy can handle consistently.
Protect and verify the file
- Write the output to a directory that is not publicly served.
- Set restrictive permissions so other hosting users cannot read the dump.
- Check that the command completed without an error and that the file has a plausible size.
- Keep a second copy away from the server.
- For high-value sites, perform a test import into a separate database rather than trusting file existence alone.
Back up with WP-CLI
WP-CLI’s wp db dump command reads the database connection values from wp-config.php and invokes mysqldump:
wp db dump wordpress-backup.sql
Run it from the WordPress installation directory, or provide the appropriate path options for your environment. Place the resulting file outside the publicly served directory, then compress and copy it to protected storage if required.
WP-CLI has options that can alter tables, output, and connection behavior. Review the command’s current help output and your installed WP-CLI version before putting a command into production automation:
Rank #3
- Sleek 7-in-1 USB-C Hub: Features an HDMI port, two USB-A 3.0 ports, and a USB-C data port, each providing 5Gbps transfer speeds. It also includes a USB-C PD input port for charging up to 100W and dual SD and TF card slots, all in a compact design.
- Flawless 4K@60Hz Video with HDMI: Delivers exceptional clarity and smoothness with its 4K@60Hz HDMI port, making it ideal for high-definition presentations and entertainment. (Note: Only the HDMI port supports video projection; the USB-C port is for data transfer only.)
- Double Up on Efficiency: The two USB-A 3.0 ports and a USB-C port support a fast 5Gbps data rate, significantly boosting your transfer speeds and improving productivity.
- Fast and Reliable 85W Charging: Offers high-capacity, speedy charging for laptops up to 85W, so you spend less time tethered to an outlet and more time being productive.
- What You Get: Anker USB-C Hub (7-in-1), welcome guide, 18-month warranty, and our friendly customer service.
wp db dump --help
Because the command uses the credentials in wp-config.php, protect that file and the shell account that can read it. A successful command still needs an output check and a restore test.
Use MySQL Workbench when a desktop interface is preferable
MySQL Workbench provides a graphical export path for administrators who have a local installation and a permitted connection to the site’s MySQL or MariaDB server. Create a connection using the host, port, username, and credentials supplied by the host, then use the data export workflow to select the WordPress database and write an SQL file.
Many shared hosts block direct database connections, so Workbench may require an SSH tunnel or may not be available at all. Do not expose a database port merely to make a desktop export possible; use the hosting panel or a shell on the server when direct access is not already secured.
Set up automatic backups
Automatic scheduled backups are useful because they remove a manual reminder from the process. WordPress documents scheduled backup plugins as a normal option and points administrators to the WordPress Plugin Directory. Plugin and host capabilities differ, so evaluate the implementation rather than the label.
Do these 3 things before closing this tab:
1Fix the driver behind crashes, sound loss and screen glitches2Clear out junk files and repair common Windows errors3Scan for outdated or missing drivers - takes under a minuteWhat to check before relying on a scheduled job
- Scope: does it save only the database or also core files, themes, plugins, uploads, and configuration files?
- Destination: are archives stored only on the same server, or can they be copied to independent remote storage?
- Retention: how many historical versions are kept, and what happens when storage fills?
- Restore path: can you download an archive and import it without the plugin being operational?
- Security: are archives encrypted in transit and at rest, and who can access them?
- Multisite: does the tool understand the network’s tables and restore requirements?
- Monitoring: do failed jobs generate a clear alert rather than silently stopping?
A practical automation workflow
- Install and configure the selected backup tool according to its documentation.
- Choose a cadence based on how often the site changes and how much data you can afford to lose; no universal interval is established by the WordPress guidance.
- Select a destination that is independent of the live web server when possible.
- Run the first job manually and wait for its completion.
- Download or inspect the resulting archive. Confirm that it contains a database dump and, if promised, the expected file directories.
- Configure retention and notifications, then check the next scheduled run.
- Perform a test restore on a staging site or disposable database. Repeat after major plugin, hosting, or backup-tool changes.
Keep occasional manual exports even when automation is enabled. A manual archive gives you an independent check that the scheduled process and its destination are functioning.
Rank #4
- Dual Converters, Infinite Potential:Includes 2× USB C male to USB A female adapters and 2× USB A male to USB C female adapters. Perfect for a wide range of uses—tablets with Bluetooth keyboards, expand USB ports on macbook, and more. Two different converters for all your daily needs
- Next-Level 10Gbps & 3A Charging: No more slow 480Mbps, this usb to usb c adapter has a transfer speed of up to 10Gbps, allowing you to do more transferring in less time. This usb adapter fits both USB A and USB C charger, supporting up to 3A fast charging
- Upgraded Exquisite Craftsmanship: With an aluminum alloy housing and metal connector, the usbc to usb adapter is extremely durable and sturdy. Rigorously tested to withstand more than 10,000 times of plugging and unplugging, ensuring long-lasting performance
- Broad Compatible: The usb c to usb adapter widely supports all USB C/ USB A devices like laptops, tablets, cellphones, car chargers, and phone chargers. Such as compatible with MacBook Pro/Air 2023/2022, Thunderbolt 4/3 Devices,Apple MagSafe Watch 9/8/7/SE/Ultra, iPad Pro 2022/2021, Samsung Galaxy S23/S20/S10, and iPhone 17/16/15 Pro. Plug and play
- Please Note: To reach 10Gbps speed, keep the cable under 3.3 ft. For USB A Male to USB C adapters, try flipping the USB C connector. USB C Male to USB A adapters support bidirectional 10Gbps transfer within 3.3 ft
Restore a WordPress SQL backup
Restoring returns the destination database to the state represented by the dump. It can overwrite newer posts, comments, orders, users, and settings. Before importing over a live database, create a fresh safety export of the current state.
Restore through phpMyAdmin
- Confirm that
wp-config.phppoints to the database you intend to replace. - Open that database in phpMyAdmin and verify the host account has permission to import.
- Use the Import tab.
- Select the
.sqlfile and confirm that the format is SQL. If the host accepts a compressed.gzor.bz2upload, use that; otherwise decompress it first. - Start the import and wait for the completion message. Do not close the browser while a large import is running.
- Check that the expected tables and row counts appear, then test the site.
If phpMyAdmin reports a size, timeout, or execution-limit error, use the command-line method instead of splitting a dump without understanding its dependencies.
Restore with the mysql client
Decompress a gzip archive and feed the SQL file to the destination database:
Quick wins for a faster PC:
Repair Windows errors before they cause bigger problemsFix Now →Scan for outdated or missing drivers - takes under a minuteDriver Scan →Clear out junk files and repair common Windows errorsFree Scan →gzip -d wordpress.sql.gz
mysql -h DB_HOST -u DB_USER -p DB_NAME < wordpress.sql
The first command creates wordpress.sql; the second prompts for the database password. For a bzip2 archive, use the equivalent bzip2 decompression command supplied by your operating system before running mysql.
Use the correct host, database name, user, and password. The --add-drop-table option used in a typical dump means existing tables can be dropped and recreated during import, which is why the pre-restore safety export matters.
Best Value
- 5-in-1 Connectivity: Equipped with a 4K HDMI port, a 5 Gbps USB-C data port, two 5 Gbps USB-A ports, and a USB C 100W PD-IN port. Note: The USB C 100W PD-IN port supports only charging and does not support data transfer devices such as headphones or speakers.
- Powerful Pass-Through Charging: Supports up to 85W pass-through charging so you can power up your laptop while you use the hub. Note: Pass-through charging requires a charger (not included). Note: To achieve full power for iPad, we recommend using a 45W wall charger.
- Transfer Files in Seconds: Move files to and from your laptop at speeds of up to 5 Gbps via the USB-C and USB-A data ports. Note: The USB C 5Gbps Data port does not support video output.
- HD Display: Connect to the HDMI port to stream or mirror content to an external monitor in resolutions of up to 4K@30Hz. Note: The USB-C ports do not support video output.
- What You Get: Anker 332 USB-C Hub (5-in-1), welcome guide, our worry-free 18-month warranty, and friendly customer service.
Post-restore checks
- Sign in to the WordPress dashboard and confirm that users and roles are present.
- Open several posts and pages, including custom post types.
- Visit Settings > Permalinks and save once if rewrite rules need to be regenerated.
- Check media references. The database stores attachment records and URLs, but the actual files must exist in
wp-content/uploads. - Submit a form, test comments if enabled, and check scheduled jobs.
- Exercise payment, membership, search, caching, and other critical plugin functions on a staging copy before declaring the recovery complete.
- Review site and server logs for database errors.
Database-only recovery versus full-site recovery
A database restore is appropriate when content or settings were damaged but the existing files are intact. It is not sufficient after a server loss, malware cleanup, or an incomplete migration if the file layer is also missing or incompatible.
| Recovery need | Required material |
|---|---|
| Recover deleted posts or changed settings while files remain healthy | Matching SQL dump, correct database credentials, and the existing WordPress files |
| Move the site to another server | SQL dump plus core, themes, plugins, uploads, .htaccess, and wp-config.php configured for the new environment |
| Rebuild after total server loss | Database dump, a compatible file backup, PHP/MySQL or MariaDB environment, and any required server configuration |
Keep the database and file backups from compatible points in time when possible. Restoring a newer database against much older plugin files can produce errors, missing settings, or changed table structures.
PC Slower Than It Used to Be?
A free scan shows the junk files, broken settings and background clutter dragging Windows down - then fixes them in one click.Free scan · Windows 10 & 11Crashes, No Sound, or Screen Glitches?
Random freezes, missing sound and display glitches usually trace back to one bad driver. Find and replace yours safely.Free scan · under a minuteCommon failures and fixes
The export times out in phpMyAdmin
Large databases can exceed browser, PHP, or host execution limits. Use mysqldump or WP-CLI on the server, where the export is not constrained by a browser request. If shell access is unavailable, ask the host for a server-side database export.
The dump imports but the site shows database errors
Check that you imported into the database named in wp-config.php, that the database user has privileges, and that the server’s MySQL or MariaDB version is compatible. Confirm the table prefix in wp-config.php matches the imported tables.
The site loads but images are missing
An SQL dump contains attachment records and URLs, not the image files. Restore the matching wp-content/uploads directory and verify its permissions and URL configuration.
A scheduled backup says “success” but no usable archive exists
Inspect the destination, retention rules, and job logs. Download an archive and open or import it in a test environment. If the tool cannot produce a visible, downloadable, restorable output, treat the job as failed and fix its storage or permissions.
Free tools Windows power users keep installed
One-click scans. No signup required.
The password appears in shell history
Rotate the database password if it may have been exposed, remove readable copies of the command, and use the interactive -p prompt or a properly protected credentials mechanism for future jobs. Never publish a real password in a script or article.
Quick Recap
Security and retention checklist
- Store at least one copy away from the production server.
- Restrict access to SQL archives and encrypt them when your storage system supports it.
- Do not leave dumps in the web root, a public uploads directory, or a predictable downloadable URL.
- Record the site, database name, table prefix, export date, and software versions with each archive.
- Retain enough history to cover the period in which an error or compromise might go unnoticed.
- Delete expired archives securely, especially when they contain personal data.
- Test restoration periodically; a backup that has never been imported is an assumption, not a verified recovery.
Which workflow should you use?
- One-time export from shared hosting: use phpMyAdmin, choose Quick and SQL, download the archive, and store it away from the server.
- Large database or migration: use
mysqldumpwith gzip and retain the command details alongside the archive. - Server-managed WordPress workflow: use
wp db dump, then compress and copy the output to protected storage. - No shell access and recurring changes: configure a reputable scheduled plugin or host service, then verify its archives and restore process yourself.
- Complete disaster recovery: maintain both database and file backups from compatible dates, and rehearse the restore on a non-production environment.
Product prices and availability are accurate as of the date/time indicated and are subject to change. Any price and availability information displayed on Amazon at the time of purchase will apply.




