October DealsAmazon USOctober deal check: compare before you payAmazon US: current deals, useful picks and tech finds.Check DealsClean PCRecommendedOne scan can reveal what keeps slowing WindowsLook for cleanup and repair opportunities.Run ScanOctober DealsAmazon USDeal season is back - check today's better picksAmazon US: current deals, useful picks and tech finds.See Picks×
Skip to content
VGSources
Blog

How to Install WordPress With a Separate Managed Database

Run WordPress on your web host and connect it to a managed MySQL or MariaDB service. This guide covers requirements, networking, wp-config.php, installation, provider selection, and connection troubleshooting.
Length10 min Posted Quest giverVGSources Team
Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

Install the WordPress files and PHP runtime on your web host, create a MySQL or MariaDB database and user in a managed database service, then point wp-config.php at the service endpoint. The installation works like a normal WordPress setup after the web host can resolve and reach the database, authenticate successfully, satisfy the database privileges, and meet the provider’s TLS requirements.

What a separate managed database means for WordPress

WordPress still needs a MySQL or MariaDB server to store posts, users, settings, comments, plugin data, and other site records. The database does not have to run on the same machine as the WordPress files. A managed design places PHP, the web server, and the WordPress directory on one host while a cloud provider operates the database instance elsewhere.

As an Amazon Associate I earn from qualifying purchases.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

This arrangement is suitable for production when the managed endpoint is reachable from the web host and the supplied credentials are valid. The browser installer, WordPress updates, plugins, and themes continue to use the same database connection; only the location of that server changes.

WordPress production support is for MySQL or MariaDB. A service advertised as “MySQL-compatible” still needs to provide a version and behavior that WordPress supports. The WordPress FAQ states that MySQL or MariaDB database servers are required to power a WordPress site.

#1 Best Overall
Sale
Gaoye Blue Light Blocking Glasses
  • BLUE LIGHT BLOCKING GLASSES: Our blue light glasses for women boast UV400 protection, blocking harmful blue rays from computer screens. With these bluelight glasses women, you can enjoy gaming, reading, or watching TV with no worries of eye strain.
  • EYE RELIEF: Our blue light glasses are engineered to reduce blurry vision or strain caused by prolonged screen time. These womens blue light glasses aid in better sleep by preventing blue light from disrupting your natural sleep cycle, helping you fall asleep faster and enjoy a more restful night's sleep, making them the perfect christmas present.
  • COMFORTABLE: Crafted from durable material, our trendy blue light glasses for woman or blue light glasses men ensure long-lasting comfort. The high-transmittance lenses accessories, gamer gifts for men, help keep your eyes relaxed. Perfect stocking stuffers, gifts for gamers men, christmas gifts for men, halloween costumes.
  • LIGHTWEIGHT: These clear blue light glasses feature a lightweight frame, meaning they’ll stay comfy for long-term wear. Perfect as blue blockers glasses for women or mens blue light glasses, these non-prescription fake glasses for men can be worn throughout the day. The blue light blocking glasses women feature polycarbonate HD lenses, which are anti-reflective and restore true color.
  • WORRY-FREE PURCHASE: If you experience any issues, our support team is ready to assist you quickly. These are the perfect costume glasses for cosplay dressing up.

Version and transport requirements

WordPress’s current requirements guidance, retrieved in 2026, recommends the versions below. Older releases may continue to run, but they are out of support and can expose a site to security vulnerabilities.

Component Current recommendation Qualification
PHP 8.3 or greater Use a PHP build supported by the web host and by your plugins and themes.
Database MySQL 8.0 or greater Use the provider’s supported MySQL release and maintenance policy.
Database MariaDB 10.11 or greater Use a maintained MariaDB branch available from the provider.
Site transport HTTPS Serve the WordPress site over HTTPS; database TLS requirements are set separately by the managed service.

The WordPress Hosting Handbook lists MySQL 8.4 as an LTS release with an April 2032 end-of-life date and MariaDB 11.8 as an LTS release with a June 2030 end-of-life date. Those lifecycle dates are handbook listings, not a promise that every host offers those exact branches. Confirm the available version, upgrade policy, and end-of-life date in the service you select.

What’s actually slowing this PC down?

Pick the symptom - the matching free tool is one click away.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

Plan the connection before creating anything

Keep the application and database close

Run PHP and the WordPress files on the web host, and create the managed database in the same region or private network where practical. Every request that reads or writes WordPress data crosses this connection, so unnecessary geographic distance adds latency and makes a network outage affect the site.

Choose private or public access deliberately

A private endpoint, virtual network, or equivalent private route is preferable when your hosting arrangement supports it. A public endpoint can work, but the managed service must restrict access to the web host’s approved source address and database port. Do not treat a hostname and password as a substitute for network controls.

Record the connection details

Before editing WordPress, collect the exact database name, database username, password, hostname, port, and any TLS requirements. Record whether the provider gives a read/write endpoint, a private DNS name, or a failover endpoint. A copied value with an extra space, wrong port, or wrong endpoint can produce the same generic connection error as a firewall problem.

Rank #2
Windex Gaming Cleaning Wipes, Pre-Moistened Wipes to Instantly Clean all Gaming Gear and Electronics, Resealable Packaging for a Freshness Lock, 25 count (Pack of 1)
  • WINDEX GAMING WIPES: effortlessly clean all your gaming gear and gaming electronics in one easy step with our new Windex Gaming Wipes
  • AMMONIA FREE: our ammonia-free formula is safe to use on all of your favorite gaming equipment like consoles, headsets, controllers, screens, keyboards, and more
  • PRE-MOISTENED WIPES: each wipe instantly removes dust, dirt, and stubborn smudges and fingerprints leaving a streak-free shine
  • ANTI-STATIC: great for cleaning and wiping down your gaming gear and electronics leaving behind no visible residue
  • COMPACT RESEALABLE PACKAGE: store your pack of Windex Gaming Wipes anywhere in your home for whenever a quick and easy wipedown is needed

Create the managed database and WordPress account

  1. Provision a MySQL or MariaDB instance. Select a supported engine version, region, storage size, availability option, and maintenance policy. Wait until the provider reports that the instance is running.
  2. Create a database dedicated to this site. A separate database keeps the site’s tables and lifecycle easier to identify and restore. Follow the provider’s naming and character rules.
  3. Create a dedicated database user. Do not reuse a personal administrator account or an account shared by unrelated applications.
  4. Grant the permissions WordPress needs. The account must be able to complete the initial schema installation and the normal schema changes required by WordPress core, plugins, and themes. Apply the least privilege that fits your update and maintenance process, using the managed service’s role controls.
  5. Save the exact values. Copy the database name, username, generated password, hostname, port, and TLS instructions into a secure password manager or deployment secret store. Do not place them in a public repository or support ticket.

Managed services often expose separate administrative and application credentials. Use the application account in WordPress and keep the high-privilege administrative account for controlled database administration.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

Allow the web host to reach the database

Network access is part of the installation, not an optional hardening step. Configure the managed service firewall, private endpoint, virtual network route, security group, or approved source-address rule so the web host can reach the database listener. Permit only the required source and port.

Azure’s WordPress guidance describes Flexible Server integrated into a virtual network, illustrating why routing and access controls must be planned together. The same principle applies to other providers: a database can be healthy and the password can be correct while the application still cannot connect because DNS, routing, or an access rule blocks the path.

Check the path in this order

  • Resolve the managed hostname from the web host. Private endpoints may require the provider’s private DNS configuration.
  • Confirm that the hostname resolves to the intended region or private address, not an old instance.
  • Verify that the outbound database port is allowed by the web host’s network policy.
  • Verify that the managed service allows the web host’s source address, subnet, virtual network, or security group.
  • Confirm that the instance is running and accepting connections.

If the provider requires encrypted database traffic, follow its TLS setup and certificate-validation instructions before running the WordPress installer. HTTPS for visitors protects browser traffic; it does not automatically configure encryption between WordPress and the database.

Configure wp-config.php

Download the WordPress package and copy wp-config-sample.php to wp-config.php, or let the browser installer create the file. Replace the database placeholders with the values from the managed service:

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.
Rank #3
Sale
LISEN Cell Phone Stand Phone Holder for Desk, Office Decor Gadgets for Men
  • Ergonomic & Adjustable Design: Fight "text neck" and improve your posture. Designed for comfort, it offers an adjustable height (7.1in-8.5in) (1.4in adjustable range) and angle (5°-85°) Please note: cell phone stand is only 9 inches tall—the length of a standard pencil
  • Without blocking subtitles Perfect for office desk Tiktok Face Time Zoom video—this is the ultimate kitchen desk essential for phones! Perfect viewing experience while reducing neck back strain, A must-have for gamers streamers desk, and anyone who values both style and support!
  • Sleek & Stable Design fits Otterbox Case: Say goodbye to bent cables, tangles, and tip-overs! LISEN’s stylish adjustable desk phone holder features a built-in charging hole and smart cable management, keeping your phone secure and your workspace clutter-free cool gadgets for men
  • ANTI-SLIP DESIGN free hands: The under 10.00 items easy gadgets back and the bottom of this kitchen essentials for women are fully covered by anti-skid silicone, which LISEN stand up desk decor can provide maximum protection device from any scratches and slides
  • Your Perfect Viewing Companion:If your product arrives damaged or breaks within 365 days, reach out to LISEN for a quick and hassle-free solution. Struggling with assembly, like tightening the screw? We’ve got your back! Your experience matters to us. (Product including: phone Holder stand*1, screw*1, hexagon screwdriver*1, specification*1)
<?php
define( 'DB_NAME', 'database_name_here' );
define( 'DB_USER', 'username_here' );
define( 'DB_PASSWORD', 'password_here' );
define( 'DB_HOST', 'managed-db.example.com' );

Use the managed hostname in DB_HOST

DB_HOST is the database hostname, not the WordPress site URL, an HTTP URL, or an IP address copied from an unrelated service. If the provider supplies a non-default port, append it to the hostname. WordPress documents the format with an example such as mysql.example.com:3307.

define( 'DB_HOST', 'managed-db.example.com:3307' );

Some environments require a socket or pipe suffix instead of a TCP port. Use the exact syntax documented by the provider. Do not add https://, a path, or quotation marks inside the value beyond the PHP string delimiters.

Protect the configuration

  • Keep wp-config.php readable by the PHP process but not downloadable as a static file.
  • Use a unique, long database password and rotate it through a planned maintenance procedure.
  • Keep production credentials out of source control, screenshots, and copied support logs.
  • If you change the password or endpoint later, update the managed service and wp-config.php as one coordinated change.

Upload WordPress and run the installer

  1. Place the files. Upload the WordPress files to the desired document root or subdirectory and preserve their filenames and directory structure.
  2. Check the configuration. Confirm that DB_NAME, DB_USER, DB_PASSWORD, and DB_HOST exactly match the managed service. Include the provider’s port when it is not the default.
  3. Open the site URL. Visit the document-root URL in a browser. If the database connection succeeds and the files are readable, WordPress displays its installation form.
  4. Complete the form. Enter the site title, administrator username, administrator password, and administrator email address. Use a unique administrator password that is not reused for the database account.
  5. Finish installation. WordPress creates its tables in the managed database and redirects you to the login screen when setup completes.

If the installer reports that it cannot establish a database connection, stop changing WordPress files and troubleshoot the connection path first. Repeatedly rerunning the installer will not fix a blocked port, wrong endpoint, or invalid account.

Verify the finished installation

After logging in, perform a short acceptance check before installing plugins or importing content:

Free tools Windows power users keep installed

One-click scans. No signup required.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.
  • Open the front page and an administrator screen over HTTPS.
  • Create a temporary draft, save it, and confirm that it remains after a refresh.
  • Upload a small media file and verify that the request completes without a database error.
  • Check the managed service’s connection, CPU, storage, and error metrics while loading the site.
  • Confirm that the database account used by WordPress has the intended privileges and is not an unrestricted administrative login.
  • Make a backup and document how to restore it before the site receives important content.

How to compare managed database providers

The WordPress Hosting Handbook lists the following services as known to perform well with WordPress. It also notes that WordPress does not regularly test every listed service, so the list is not a ranking or a guarantee for a particular plan.

Rank #4
Ledagic IC+RGBW USB Powered Led Light Bar with App & Remote Control, 2 Pack
  • Easy Installation: Our gaming lights have been designed to enhance your entertainment experience. Simply position the led light bar next to your TV or game console to create a game room environment with ease. They come with USB power and a 60 inch cord for direct mounting and mobility
  • Audio Syncing & Extensive Mode: The built-in high-sensitivity music sensor allows you to sync the TV led lights to your favorite music. Lights react and move to the beat of music, film and game audio, creating an incredible immersive sound and light experience – and all without the need for an additional hub. You can choose from 64+ patterns, including strobe, illusion, jump, energy, gradient, running, chasing, fluttering mode etc. Each mode can be applied to different scenes
  • 64+ Chasing IC+RGB & W Effect: The independent control design of IC+RGB and white all-in-one multifunctional rgbw led bar lights monitor backlight allows you to easily switch the led lights for desk between IC+RGB and white to enjoy a variety of lighting effects, you can choose white lighting mode with high brightness for better illumination when working, etc. Choose IC+RGB lighting mode when you need to create an entertaining atmosphere for the light show, 16 million colours of Color changing rgb light bar let you dance to the beat and create a dynamic party atmosphere
  • Dynamic and Dimmable Lights: 1%-full brightness free brightness adjustment gives you the flexibility to adjust dimmable led light bar for room decorations or a variety of occasions
  • USB Powered: USB light bars for room can be powered by powernank, usb charger, TV, Monitor, laptop PC mainframe, making behind TV led lighting bar easy to install in any location.TV led lights are powered by the TV usb interface / PC mainframe, can be turned on/off synchronously with TV / PC
Service listed by the handbook Database offering identified in the listing What to verify before choosing
Amazon RDS MySQL and MariaDB Engine version, private networking, backups, scaling, and regional placement.
Azure Database for MySQL MySQL Virtual-network integration, firewall rules, TLS, backup retention, and connection limits.
Google Cloud MySQL MySQL Supported versions, failover design, private access, storage growth, and restore testing.
DigitalOcean MySQL MySQL Region, high-availability options, endpoint behavior, backups, and maximum connections.
IBM Cloud Databases for MySQL MySQL Network isolation, maintenance windows, backup recovery, and scaling model.
Other MySQL-compatible services Depends on the service Confirm actual WordPress compatibility instead of assuming that “compatible” means identical behavior.

Microsoft describes Azure Database for MySQL as a fully managed database-as-a-service offering and publishes a WordPress deployment example. Treat that documentation as an implementation example, not as a universal ranking of providers.

Use these decision criteria

  • Compatibility and lifecycle: Choose a maintained MySQL or MariaDB version that meets WordPress’s requirements and your plugin support matrix.
  • Network topology: Prefer private connectivity where practical; otherwise require strict firewall rules and a documented source address.
  • Backups and recovery: Check automated backup retention, point-in-time recovery, export options, and whether you can rehearse a restore.
  • Region and latency: Place the database near the web host and your principal users when the architecture permits.
  • Scaling: Compare storage growth, compute changes, connection limits, read or write options, and high-availability behavior.
  • Cost and responsibility: Compare the provider’s billing model and identify which tasks remain yours, including WordPress updates, credential rotation, testing, and restore validation. The official material cited here does not establish current prices.
Independent reader supportYour contribution helps us test, update, and keep practical guides available for everyone.Support on Ko-Fi

Troubleshoot connection failures systematically

WordPress’s handbook recommends checking database information, user permissions, and server availability. Work through the following sequence so each test eliminates a different class of failure.

1. The hostname or port is wrong

Compare DB_HOST character by character with the provider’s current endpoint. If the service specifies a port, use hostname:port. Remove accidental spaces, a URL scheme, or a path. If the provider recently failed over the instance, verify that you are using its current endpoint rather than an old node address.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

2. DNS or routing cannot reach the endpoint

Resolve the hostname from the web host, then inspect private DNS, virtual-network routes, and outbound firewall policy. A private endpoint that resolves only inside the provider network will not work from a web host on an unrelated network until routing and DNS are connected.

3. A firewall or security group blocks the request

Check both sides: the managed service must allow the web host’s source address or network, and the web host must permit outbound traffic to the database port. Temporarily broadening access can help isolate a rule problem, but restore a narrow allow-list immediately after the test.

Best Value
Sale
HUANUO FlowLift™ Dual Monitor Stand, Fully Adjustable Gaming Monitor Desk Mount for 13–32″ Computer Screens, Full Motion VESA 75x75/100x100 with C-Clamp & Grommet Base, Each Arm Holds 4.4 to 19.8 lbs
  • Compatible with Wide Screens - To ensure compatibility with the dual monitor mount, your each monitor must meet three conditions at the same time: First, computer screens size range: 13 to 32 inches. Second, screen weight range: 4.4 to 19.8 lbs. Third, the back of the monitor screen must have VESA mounting holes with a pitch of 75x75mm or 100x100mm.
  • Regarding the compatibility with desks - Your desk must meet three conditions at the same time: First, desk material: Only wooden desks are recommended, plastic or glass desks cannot be used. Second, desk thickness range: 0.59" - 3.54". Third, the bottom of the desk should not have any cross beams or panels, as this will interfere with installation. We recommend carefully checking that your desk and monitors meets all above conditions before purchasing.
  • Dual C-Clamp Hold - Worried your dual monitors might wobble or slip? Our upgraded base uses a larger platform plus a dual C-clamp structure to lock the dual monitor arm firmly to your desk. Each arm safely keeps your screens steady while you type, click and game—no shaking, no sliding, just a clean and secure setup you can trust every day. It also provides Grommet Mounting installation choice, both options ensure stable and secure fixation for your 0.59" - 3.54" desk.
  • Full-Motion Adjustment For Comfortable View - Pull the screen closer when you’re deep in a spreadsheet, push it back to watch videos, or rotate to portrait for coding — moving everything smoothly with just one hand. The monitor stand offers +85°/-50° tilt, ±90° swivel and 360° rotation. Raise your monitor up to 15.75″ to support a healthy sitting posture. Whether you’re working from home, gaming through the night, or switching between video calls and documents, getting the screens to your natural line of sight helps relieve neck, shoulder and back strain so you can stay focused longer with less fatigue.
  • Keep Your Desk Organized: By lifting both screens off the desktop, this dual monitor stand opens up valuable space for your keyboard, notebook, docking station or a simple, clutter-free work area. Built-in cable management guides wires along the arms, keeping cords out of sight and out of the way. Enjoy a tidy, modern workstation that looks as good as it feels to use.

4. The credentials or database name are invalid

Re-enter the exact database name, username, and password from the managed service. Watch for copied whitespace and case differences. Confirm that the account belongs to the intended instance and that the database actually exists there.

5. The account lacks required privileges

A connection can authenticate while installation fails when the account cannot create or alter the WordPress schema. Review the account’s grants in the managed service and provide the permissions required for installation and routine WordPress updates.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

6. TLS settings do not match

If the service requires encrypted connections, confirm that WordPress’s database client path follows the provider’s TLS requirements and trusts the required certificate authority. A successful DNS lookup does not prove that the encrypted handshake will succeed.

7. The managed instance is stopped or unhealthy

Check the provider status page and the instance dashboard for stopped, restarting, maintenance, storage, or connection-limit conditions. Wait for a running state before changing application configuration.

Operate the two-part installation safely

Backups are still your responsibility

A managed provider may automate backups, but you still need to know the retention period, recovery-point objectives, export method, and restoration procedure. Test a restore into an isolated instance and verify that WordPress can connect to the restored database before relying on the backup in an emergency.

Plan upgrades as a compatibility change

Database engine upgrades, PHP upgrades, and WordPress updates can affect one another. Confirm that the target MySQL or MariaDB version is supported by the WordPress release and by your plugins and themes. Schedule maintenance, take a recoverable backup, and monitor the application after the change.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

Watch connections and latency

Separate hosting introduces a network hop and a provider connection limit. Monitor connection counts, query or request latency, storage growth, and error rates. If the site outgrows its initial tier, evaluate the provider’s documented scaling and high-availability options instead of changing DB_HOST ad hoc.

Document recovery details

Keep an access-controlled record of the endpoint, port, database name, account owner, TLS requirements, firewall source, backup location, and restore steps. When staff or infrastructure changes, this record prevents a working site from becoming unmaintainable because no one knows which network rule or endpoint it uses.

Installation checklist

  • Web host runs a supported PHP release, preferably PHP 8.3 or newer.
  • Managed service runs MySQL 8.0 or newer, or MariaDB 10.11 or newer.
  • Database and dedicated WordPress user exist.
  • Required WordPress privileges are assigned to that user.
  • Hostname, port, DNS, routing, and firewall rules are verified from the web host.
  • TLS requirements for the database are understood and configured.
  • DB_NAME, DB_USER, DB_PASSWORD, and DB_HOST are correct.
  • WordPress files are uploaded to the intended document root.
  • HTTPS is enabled before normal users access the site.
  • Backups and a tested restore procedure are documented.

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.

Leave a Reply

Your email address will not be published. Required fields are marked *

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

More quests from Patch Notes

  1. How to Set Up a RedM (RDR2) Server in 2026: License Key, txAdmin and server.cfg, Step by StepBlog11min
  2. Best RedM (RDR2) Server Hosting in 2026: Comparing Four Hosts on Slots, Memory and PriceBlog10min
  3. How to Host a Mindustry Server in 2026: server-release.jar, Port 6567 and the Commands That MatterBlog7min
Recommended PC Tool
Recommended PC Tool
PC Slower Than It Used to Be?Free scan - under a minute
Crashes, No Sound, or Screen Glitches?Free driver scan

Two free Windows tools

One Free Minute Could Fix That PC

Before you go - each of these free tools takes about a minute and tackles what quietly slows a Windows PC down.

Special offer. View Outbyte info, uninstall instructions, EULA, and Privacy Policy.