Skip to content

Best VPS for Databases (Postgres & MySQL) in 2026

Updated Aug 2026 · 8 plans benchmarked

A self-hosted database wants three things: RAM to cache the working set, fast NVMe for write latency, and reliable backups. These plans deliver all three without enterprise pricing.

Prefer to try before you commit? Kamatera's free tier lets you spin one up now.Start free on Kamatera → (opens in new tab)
What to look for
  • RAM sized to your working set — a high cache-hit ratio is the single biggest performance lever.
  • NVMe, not spinning disk, for low write latency and fast checkpoints.
  • Snapshots or automated backups for point-in-time recovery.
  • KVM for full control of kernel/IO tuning, and a region near your app servers.

The picks

Hetzner CloudBest overall

Fast NVMe and 4 GB RAM handle a real Postgres or MySQL workload, and Snapshots make point-in-time backups trivial.

From $4.59/mo · 2 vCPU / 4 GB / 40 GB · EU + USGet Hetzner Cloud (opens in new tab)
OVHcloudEasiest to start

NVMe across the range and included daily backups suit a self-run database; the 4 GB VPS-1 is the cheapest NVMe entry in this list.

From $4.54/mo · 2 vCPU / 4 GB / 40 GB · US + EU + Canada + Asia + AustraliaGet OVHcloud (opens in new tab)
ContaboRunner-up

The Cloud VPS 4 packs 8 GB and NVMe for under $5 — the most RAM-per-dollar here for a memory-hungry database (choose the NVMe option).

From $4.95/mo · 4 vCPU / 8 GB / 100 GB · EU + US + UK + Asia + AustraliaGet Contabo (opens in new tab)
KamateraAlso goodfree tierpaid link

Scale RAM independently as your dataset grows, and place the database in the same region as your app to cut query latency.

From $4/mo · 1 vCPU / 1 GB / 20 GB · US + EU + AsiaStart free on Kamatera → (opens in new tab)
DigitalOceanAlso goodpaid link

Straightforward provisioning and reliable block storage for a self-run database; managed database add-ons exist if you outgrow DIY. Hetzner is cheaper for the raw box.

From $6/mo · 1 vCPU / 1 GB / 25 GB · US + EU + AsiaDeploy on DigitalOcean → (opens in new tab)
affiliate disclosure

The picks, side by side

Hetzner CloudBest overall
From$4.59/movCPU2RAM4 GBStorage40 GBRegionsEU, US
OVHcloudEasiest to start
From$4.54/movCPU2RAM4 GBStorage40 GBRegionsUS, EU, Canada, Asia, Australia
ContaboRunner-up
From$4.95/movCPU4RAM8 GBStorage100 GBRegionsEU, US, UK, Asia, Australia
KamateraAlso good
From$4.00/movCPU1RAM1 GBStorage20 GBRegionsUS, EU, Asia
DigitalOceanAlso good
From$6.00/movCPU1RAM1 GBStorage25 GBRegionsUS, EU, Asia

Prices verified Aug 2026 · How we benchmark →

Common questions

How much RAM does my database need?

Ideally enough to hold your working set (the frequently accessed rows and indexes) in cache. For small apps 2–4 GB is plenty; size up as your hot data grows.

NVMe vs SSD for databases — does it matter?

Yes. NVMe has far lower write latency than SATA SSD, which directly improves transaction throughput and checkpoint times under load.

Should the database share a VPS with my app?

At small scale, yes — it's simpler and cheaper. Split it onto its own box once the database and app start competing for RAM or CPU.

We use analytics cookies (Google Analytics, PostHog) to see which guides are useful. No ad networks, no cross-site tracking. See our privacy policy.