1. Home
  2. Use cases
  3. PostgreSQL and MySQL

Best VPS for PostgreSQL and MySQL

Short answer

For PostgreSQL and MySQL we look for at least 8 GB RAM and 2 vCPU. 39 providers sell a plan that meets it; the cheapest qualifying plan is Contabo Cloud VPS 4 at $6.16 a month. LikeVPS, netcup and Contabo rank highest once features that matter here are weighed in.

Checked October 14, 2026. How we rank

providers listed
39
lowest monthly price
$6.16
median monthly price
$27.01
sell Windows
25

Databases reward three things: RAM to keep the working set cached, NVMe for random I/O and dedicated cores so query latency does not depend on neighbours. Private networking lets your app servers talk to the database without exposing it to the internet.

Checklist

  • 8 GB RAM or more
  • NVMe storage
  • Dedicated CPU line for production
  • Private networking and snapshots

The list

Only show:
  1. 1

    LikeVPS

    Since 2020, based in United Kingdom; 26 locations in 26 countries, typically $4.25 per GB of RAM.

    • Windows
    • DDoS filter
    • Unmetered
    • Crypto

    Smallest plan that fits

    Start [US]

    4 vCPU / 8 GB RAM / 100 GB NVMe / unmetered

    $23.00/mo

    Go to LikeVPS
  2. 2

    netcup

    Since 2008, based in Germany; 5 locations in 5 countries, typically $2.01 per GB of RAM.

    • Hourly
    • DDoS filter
    • Unmetered
    • Dedicated CPU

    Smallest plan that fits

    VPS 1000 G12.5

    4 vCPU / 8 GB RAM / 128 GB SSD / unmetered

    $15.69/mo

    Go to netcup
  3. 3

    Contabo

    Since 2003, based in Germany; 10 locations in 7 countries, typically $0.70 per GB of RAM.

    • Windows
    • DDoS filter
    • Unmetered
    • Dedicated CPU

    Smallest plan that fits

    Cloud VPS 4

    4 vCPU / 8 GB RAM / 100 GB SSD / unmetered

    $6.16/mo

    Go to Contabo
  4. 4

    Vultr

    Since 2014, based in United States; 32 locations in 19 countries, typically $5.50 per GB of RAM.

    • Windows
    • Hourly
    • DDoS filter
    • Crypto
    • Dedicated CPU

    Smallest plan that fits

    Regular Performance 4 vCPU / 8 GB (vc2-4c-8gb)

    4 vCPU / 8 GB RAM / 160 GB SSD / 4 TB

    $40.00/mo

    Go to Vultr
  5. 5

    HostHatch

    Since 2011, based in United States; 14 locations in 12 countries, typically $1.31 per GB of RAM.

    • DDoS filter

    Smallest plan that fits

    NVMe 8 GB

    2 vCPU / 8 GB RAM / 35 GB NVMe / 2 TB

    $9.00/mo

    Go to HostHatch
  6. 6

    DigitalOcean

    Since 2012, based in United States; 13 locations in 8 countries, typically $7.00 per GB of RAM.

    • Hourly
    • DDoS filter
    • Crypto
    • Dedicated CPU

    Smallest plan that fits

    Basic 8 GB (s-4vcpu-8gb)

    4 vCPU / 8 GB RAM / 160 GB SSD / 5 TB

    $48.00/mo

    Go to DigitalOcean
  7. 7

    BuyVM

    Since 2010, based in United Arab Emirates; 4 locations in 2 countries, typically $5.00 per GB of RAM.

    • Windows
    • DDoS filter
    • Unmetered
    • Crypto
    • Dedicated CPU

    Smallest plan that fits

    Ryzen KVM 8GB

    2 vCPU / 8 GB RAM / 160 GB NVMe / unmetered

    $38.00/mo

    Go to BuyVM
  8. 8

    HOSTKEY

    Since 2007, based in Netherlands; 7 locations in 7 countries, typically $1.33 per GB of RAM.

    • Windows
    • Hourly
    • DDoS filter
    • Crypto
    • Dedicated CPU

    Smallest plan that fits

    Hourly VPS Business

    4 vCPU / 8 GB RAM / 100 GB SSD / traffic n/a

    $7.20/mo

    Go to HOSTKEY
  9. 9

    UltaHost

    Since 2018, based in United States; 29 locations in 25 countries, typically $4.71 per GB of RAM.

    • Windows
    • DDoS filter
    • Unmetered
    • Crypto
    • Dedicated CPU

    Smallest plan that fits

    Power Plus

    4 vCPU / 8 GB RAM / 250 GB NVMe / unmetered

    $37.72/mo

    Go to UltaHost
  10. 10

    Hetzner Cloud

    Since 1997, based in Germany; 6 locations in 4 countries, typically $1.75 per GB of RAM.

    • Hourly
    • DDoS filter
    • Dedicated CPU

    Smallest plan that fits

    CX33

    4 vCPU / 8 GB RAM / 80 GB NVMe / 20 TB

    $10.07/mo

    Go to Hetzner
  11. 11

    GreenCloudVPS

    Since 2013, based in United States; 19 locations in 9 countries, typically $5.00 per GB of RAM.

    • Windows
    • Crypto
    • Dedicated CPU

    Smallest plan that fits

    EPYCVDS-2

    2 vCPU / 16 GB RAM / 160 GB NVMe / 8 TB

    $20.00/mo

    Go to GreenCloud
  12. 12

    OVHcloud VPS

    Since 1999, based in France; 11 locations in 9 countries, typically $1.04 per GB of RAM.

    • Windows
    • DDoS filter
    • Unmetered

    Smallest plan that fits

    VPS-2

    4 vCPU / 8 GB RAM / 75 GB NVMe / unmetered

    $8.50/mo

    Go to OVHcloud
  13. 13

    Evolution Host

    Since 2013, based in Ireland; 17 locations in 11 countries, typically $7.40 per GB of RAM.

    • Windows
    • DDoS filter
    • Crypto
    • Dedicated CPU

    Smallest plan that fits

    Professional

    8 vCPU / 8 GB RAM / 120 GB NVMe / 70 TB

  14. 14

    Akamai Cloud (Linode)

    Since 2003, based in United States; 26 locations in 15 countries, typically $6.00 per GB of RAM.

    • Hourly
    • DDoS filter
    • Dedicated CPU

    Smallest plan that fits

    Linode 8 GB

    4 vCPU / 8 GB RAM / 160 GB SSD / 5 TB

    $48.00/mo

    Go to Linode
  15. 15

    IONOS VPS

    Since 1988, based in Germany; 8 locations in 4 countries, typically $3.06 per GB of RAM.

    • Windows
    • DDoS filter
    • Unmetered

    Smallest plan that fits

    VPS Linux L+

    4 vCPU / 8 GB RAM / 240 GB NVMe / unmetered

    $25.00/mo

    Go to IONOS
  16. 16

    Leaseweb VPS

    Since 1997, based in Netherlands; 9 locations in 8 countries, typically $0.64 per GB of RAM.

    • DDoS filter

    Smallest plan that fits

    Leaseweb VPS 2

    6 vCPU / 16 GB RAM / 200 GB NVMe / 30 TB

    $10.06/mo

    Go to Leaseweb
  17. 17

    UpCloud

    Since 2011, based in Finland; 14 locations in 12 countries, typically $4.50 per GB of RAM.

    • Windows
    • Hourly

    Smallest plan that fits

    Starter 4xCPU-8GB

    4 vCPU / 8 GB RAM / 40 GB SSD / traffic n/a

    $24.00/mo

    Go to UpCloud
  18. 18

    Exoscale

    Since 2011, based in Switzerland; 7 locations in 5 countries, typically $9.58 per GB of RAM.

    • Windows
    • Hourly
    • Dedicated CPU

    Smallest plan that fits

    Standard Large

    4 vCPU / 8 GB RAM / 10 GB NVMe / 1 TB

    $68.13/mo

    Go to Exoscale
  19. 19

    Webdock

    Since 2019, based in Denmark; 1 location in 1 country, typically $2.19 per GB of RAM.

    • DDoS filter

    Smallest plan that fits

    VPS Pro

    6 vCPU / 10 GB RAM / 40 GB NVMe / 7 TB

    $21.95/mo

    Go to Webdock
  20. 20

    SSD Nodes

    Since 2011, based in United States; 15 locations in 10 countries, typically $1.56 per GB of RAM.

    • DDoS filter

    Smallest plan that fits

    KVM / Small

    2 vCPU / 8 GB RAM / 160 GB SSD / 4 TB

    $17.00/mo

    Go to SSD Nodes
  21. 21

    Oracle Cloud Infrastructure Compute

    Since 1977, based in United States; 25 locations in 21 countries, typically $3.38 per GB of RAM.

    • Windows
    • Hourly
    • DDoS filter

    Smallest plan that fits

    VM.Standard.E4.Flex 1 OCPU / 8 GB

    2 vCPU / 8 GB RAM / 50 GB NVMe / 10 TB

    $27.01/mo

    Go to Oracle Cloud
  22. 22

    Amazon Lightsail

    Since 2006, based in United States; 19 locations in 17 countries, typically $7.00 per GB of RAM.

    • Windows
    • Hourly
    • DDoS filter
    • Dedicated CPU

    Smallest plan that fits

    Linux 8 GB

    2 vCPU / 8 GB RAM / 160 GB SSD / 5 TB

    $44.00/mo

    Go to Lightsail
  23. 23

    Hostinger VPS

    Since 2004, based in Lithuania; 10 locations in 9 countries, typically $1.84 per GB of RAM.

    • DDoS filter
    • Crypto

    Smallest plan that fits

    KVM 2

    2 vCPU / 8 GB RAM / 100 GB NVMe / 8 TB

    $14.99/mo

    Go to Hostinger
  24. 24

    Tencent Cloud Lighthouse

    Since 2013, based in CN; 11 locations in 10 countries, typically $2.25 per GB of RAM.

    • Windows
    • DDoS filter
    • Unmetered

    Smallest plan that fits

    Starter 2C8G 100GB

    2 vCPU / 8 GB RAM / 100 GB SSD / 3 TB

  25. 25

    Scaleway

    Since 1999, based in France; 4 locations in 4 countries, typically $5.78 per GB of RAM.

    • Windows
    • Hourly
    • Unmetered
    • Dedicated CPU

    Smallest plan that fits

    PRO2-XXS

    2 vCPU / 8 GB RAM / ? GB / unmetered

    $45.86/mo

    Go to Scaleway
  26. 26

    Cloudways

    Since 2012, based in MT; 9 locations in 8 countries, typically $11.00 per GB of RAM.

    • Hourly
    • DDoS filter
    • Dedicated CPU

    Smallest plan that fits

    DigitalOcean Medium

    4 vCPU / 8 GB RAM / 160 GB SSD / 5 TB

    $88.00/mo

    Go to Cloudways
  27. 27

    RackNerd

    Since 2019, based in United States; 12 locations in 5 countries, typically $6.15 per GB of RAM.

    • Windows
    • Crypto

    Smallest plan that fits

    KVM VPS 8 GB

    6 vCPU / 8 GB RAM / 220 GB SSD / 5 TB

    $36.59/mo

    Go to RackNerd
  28. 28

    InterServer

    Since 1999, based in United States; 3 locations in 1 country, typically $1.50 per GB of RAM.

    • Windows
    • DDoS filter

    Smallest plan that fits

    Linux VPS 4 slices

    2 vCPU / 8 GB RAM / 120 GB SSD / 8 TB

    $12.00/mo

    Go to InterServer
  29. 29

    Hosting.com

    Since 2001, based in United States; 10 locations in 9 countries, typically $5.00 per GB of RAM.

    • Windows
    • Unmetered
    • Dedicated CPU

    Smallest plan that fits

    VPS S (8GB Cloud Server)

    4 vCPU / 8 GB RAM / 150 GB NVMe / unmetered

    $39.99/mo

    Go to Hosting.com
  30. 30

    Bluehost VPS

    Since 2003, based in United States; 9 locations in 8 countries, typically $3.62 per GB of RAM.

    • DDoS filter
    • Unmetered

    Smallest plan that fits

    NVMe 8

    4 vCPU / 8 GB RAM / 200 GB NVMe / unmetered

    $28.99/mo

    Go to Bluehost
  31. 31

    HostGator VPS

    Since 2002, based in United States; 1 location in 1 country, typically $2.41 per GB of RAM.

    • DDoS filter
    • Unmetered

    Smallest plan that fits

    Snappy 4000 - NVMe 8

    4 vCPU / 8 GB RAM / 200 GB NVMe / unmetered

    $18.70/mo

    Go to HostGator
  32. 32

    Alibaba Cloud Simple Application Server

    Since 2009, based in CN; 12 locations in 11 countries, typically $4.50 per GB of RAM.

    • Windows
    • DDoS filter
    • Crypto

    Smallest plan that fits

    Linux 2C/8G

    2 vCPU / 8 GB RAM / 160 GB SSD / 5 TB

  33. 33

    Time4VPS

    Since 2003, based in Lithuania; 1 location in 1 country, typically $3.64 per GB of RAM.

    • Windows
    • DDoS filter
    • Crypto

    Smallest plan that fits

    Linux 8

    3 vCPU / 8 GB RAM / 100 GB SSD / 16 TB

    $22.39/mo

    Go to Time4VPS
  34. 34

    ScalaHosting

    Since 2007, based in United States; 15 locations in 13 countries, typically $8.23 per GB of RAM.

    • Windows
    • Unmetered

    Smallest plan that fits

    Config #2

    4 vCPU / 8 GB RAM / 100 GB NVMe / unmetered

    $49.95/mo

    Go to ScalaHosting
  35. 35

    Hostwinds

    Since 2010, based in United States; 3 locations in 2 countries, typically $4.99 per GB of RAM.

    • Windows
    • Crypto

    Smallest plan that fits

    Unmanaged Linux 5

    4 vCPU / 8 GB RAM / 150 GB SSD / 3 TB

    $38.99/mo

    Go to Hostwinds
  36. 36

    Liquid Web VPS

    Since 1997, based in United States; 3 locations in 2 countries, typically $5.61 per GB of RAM.

    • Windows
    • Hourly
    • DDoS filter

    Smallest plan that fits

    Cloud VPS Compute 8GB

    4 vCPU / 8 GB RAM / 240 GB SSD / 5 TB

    $45.00/mo

    Go to Liquid Web
  37. 37

    GoDaddy VPS

    Since 1997, based in United States; 3 locations in 3 countries, typically $7.50 per GB of RAM.

    • Windows
    • DDoS filter
    • Unmetered

    Smallest plan that fits

    4 vCPU / 8GB RAM

    4 vCPU / 8 GB RAM / 200 GB NVMe / unmetered

    $59.99/mo

    Go to GoDaddy
  38. 38

    Namecheap VPS

    Since 2000, based in United States; 1 location in 1 country, typically $3.15 per GB of RAM.

    • Crypto

    Smallest plan that fits

    Magnetar

    8 vCPU / 12 GB RAM / 240 GB SSD / 6 TB

    $32.88/mo

    Go to Namecheap
  39. 39

    DreamHost VPS

    Since 1997, based in United States; 1 location in 1 country, typically $6.79 per GB of RAM.

    • DDoS filter
    • Unmetered

    Smallest plan that fits

    Stack 8

    2 vCPU / 8 GB RAM / 150 GB NVMe / unmetered

    $21.99/mo

    Go to DreamHost
See these numbers as a table
#ProviderPlanvCPURAMDisk$/month$/GB RAMLocationsTrustpilot
1LikeVPSStart [US]48 GB100 GB$23.00$2.8826—
2netcupVPS 1000 G12.548 GB128 GB$15.69$1.9653.8
3ContaboCloud VPS 448 GB100 GB$6.16$0.77104.6
4VultrRegular Performance 4 vCPU / 8 GB (vc2-4c-8gb)48 GB160 GB$40.00$5.00321.6
5HostHatchNVMe 8 GB28 GB35 GB$9.00$1.12142.7
6DigitalOceanBasic 8 GB (s-4vcpu-8gb)48 GB160 GB$48.00$6.00134.5
7BuyVMRyzen KVM 8GB28 GB160 GB$38.00$4.7543.8
8HOSTKEYHourly VPS Business48 GB100 GB$7.20$0.9073.1
9UltaHostPower Plus48 GB250 GB$37.72$4.71293.5
10Hetzner CloudCX3348 GB80 GB$10.07$1.2663.0
11GreenCloudVPSEPYCVDS-2216 GB160 GB$20.00$1.25193.3
12OVHcloud VPSVPS-248 GB75 GB$8.50$1.06113.8
13Evolution HostProfessional88 GB120 GB$67.13$8.39174.5
14Akamai Cloud (Linode)Linode 8 GB48 GB160 GB$48.00$6.00262.5
15IONOS VPSVPS Linux L+48 GB240 GB$25.00$3.1284.6
16Leaseweb VPSLeaseweb VPS 2616 GB200 GB$10.06$0.6393.4
17UpCloudStarter 4xCPU-8GB48 GB40 GB$24.00$3.00143.0
18ExoscaleStandard Large48 GB10 GB$68.13$8.5273.5
19WebdockVPS Pro610 GB40 GB$21.95$2.1914.9
20SSD NodesKVM / Small28 GB160 GB$17.00$2.12153.0
21Oracle Cloud Infrastructure ComputeVM.Standard.E4.Flex 1 OCPU / 8 GB28 GB50 GB$27.01$3.38251.3
22Amazon LightsailLinux 8 GB28 GB160 GB$44.00$5.50191.3
23Hostinger VPSKVM 228 GB100 GB$14.99$1.87104.6
24Tencent Cloud LighthouseStarter 2C8G 100GB28 GB100 GB$12.50$1.5611—
25ScalewayPRO2-XXS28 GB—$45.86$5.7341.5
26CloudwaysDigitalOcean Medium48 GB160 GB$88.00$11.0094.6
27RackNerdKVM VPS 8 GB68 GB220 GB$36.59$4.57124.3
28InterServerLinux VPS 4 slices28 GB120 GB$12.00$1.5034.3
29Hosting.comVPS S (8GB Cloud Server)48 GB150 GB$39.99$5.00104.8
30Bluehost VPSNVMe 848 GB200 GB$28.99$3.6294.5
31HostGator VPSSnappy 4000 - NVMe 848 GB200 GB$18.70$2.3414.6
32Alibaba Cloud Simple Application ServerLinux 2C/8G28 GB160 GB$35.00$4.38121.2
33Time4VPSLinux 838 GB100 GB$22.39$2.8014.7
34ScalaHostingConfig #248 GB100 GB$49.95$6.24154.9
35HostwindsUnmanaged Linux 548 GB150 GB$38.99$4.8732.1
36Liquid Web VPSCloud VPS Compute 8GB48 GB240 GB$45.00$5.6233.8
37GoDaddy VPS4 vCPU / 8GB RAM48 GB200 GB$59.99$7.5034.4
38Namecheap VPSMagnetar812 GB240 GB$32.88$2.7414.2
39DreamHost VPSStack 828 GB150 GB$21.99$2.7514.6

Price check

Cheapest qualifying plan: PostgreSQL and MySQLCheapest qualifying plan: PostgreSQL and MySQLContaboContabo: $6.16/mo$6.16HOSTKEYHOSTKEY: $7.20/mo$7.20OVHcloud VPSOVHcloud VPS: $8.50/mo$8.50HostHatchHostHatch: $9.00/mo$9.00Leaseweb VPSLeaseweb VPS: $10.06/mo$10.06Hetzner CloudHetzner Cloud: $10.07/mo$10.07InterServerInterServer: $12.00/mo$12.00Tencent Cloud LighthouseTencent Cloud Lighthouse: $12.50/mo$12.50Hostinger VPSHostinger VPS: $14.99/mo$14.99netcupnetcup: $15.69/mo$15.69SSD NodesSSD Nodes: $17.00/mo$17.00HostGator VPSHostGator VPS: $18.70/mo$18.70GreenCloudVPSGreenCloudVPS: $20.00/mo$20.00WebdockWebdock: $21.95/mo$21.95DreamHost VPSDreamHost VPS: $21.99/mo$21.99Time4VPSTime4VPS: $22.39/mo$22.39LikeVPSLikeVPS: $23.00/mo$23.00UpCloudUpCloud: $24.00/mo$24.00

Questions

Should I self-host a database or use a managed one?

Self-hosting on a VPS costs a fraction of managed databases but makes backups, upgrades and failover your job. For a single small app it is often worth it; for revenue-critical data, managed services earn their price.