VPS for a database

For MySQL, PostgreSQL or Redis: 2 GB of RAM and 40 GB of NVMe or more — a database is limited by memory and disk speed. Plans with the cheapest gigabyte of RAM first.

Find a VPS in four questions
8,563 plans
Sort by

VPS for a database: prices, hosting providers and payment methods

The selection has 8,563 plans from 1,082 hosts. Prices start at 1.16 $ per month, a quarter of plans are cheaper than 19.63 $, half are cheaper than 39.96 $. NVMe: 100% of plans, unlimited traffic: 35%, hourly billing: 10%.

Cheapest hosting providers

  1. CloudTechtiqProfessional Cloud VPS · 4 cores · 8 GB1.16 $
  2. Çelen Hosting Information Tech.DE-AMD-01 · 1 core · 2 GB1.21 $
  3. CServersExtraVPS-4096 · 3 cores · 4 GB2.16 $
  4. WeHaveServersVPS-1 · 1 core · 4 GB2.18 $
  5. Voyar CloudCV-10 · 2 cores · 2 GB2.47 $

Price by RAM size

RAMPlansPrice from
from 1 GB8,5631.16 $
from 2 GB8,5631.16 $
from 4 GB7,9281.16 $
from 8 GB6,0611.16 $
from 16 GB3,7452.73 $

Payment methods

  • Bank card620 57%
  • Cryptocurrency316 29%

How many hosting providers in the selection accept each payment method.

Best VPS hosting 2026 Provider comparisons VPS guide

How to choose a VPS for a database

VPS for a database: how much memory your data needs, why NVMe, and which port to close
The working set has to fit in memory and the transaction log needs fast writes — so a database is limited by RAM and NVMe, not by the number of cores.

A database on your own VPS means a predictable price and full control over the settings: you can install the version you need, enable extensions and set up backups your way. Managed cloud databases are more convenient, but cost several times more for the same amount of memory. If you're prepared to handle updates and backups yourself, a database server pays for itself quickly.

Memory matters more than cores

Databases keep hot data in RAM: PostgreSQL in shared_buffers and the filesystem cache, MySQL and MariaDB in the InnoDB buffer pool, Redis keeps everything there. As long as the working set fits in memory, queries return in milliseconds; once it stops fitting, every query goes to disk and speed drops by an order of magnitude or more. So first estimate the size of your active data and choose memory with headroom:

  • up to 5 GB of data — a blog, a small shop, a bot backend: 2 GB of RAM is enough;
  • 10–30 GB — a CRM, an online store with a catalog, analytics: from 4 GB, preferably 8 GB;
  • over 50 GB or hundreds of queries per second — 16 GB or more and dedicated cores.

Cores are needed for parallel queries and heavy reports. For a typical web workload 2 cores are enough, and the table above is sorted by price per gigabyte of memory by default — the key metric for a database.

Storage: NVMe only

A database constantly performs small random reads and writes, and the transaction log needs fast synchronous writes. On HDDs and cheap shared SATA SSDs this turns into latency and stalls at every checkpoint. Choose NVMe plans and plan for three times your current data size: indexes, WAL or binlog files, temporary sort files and local backups take up at least as much as the tables themselves.

PostgreSQL, MySQL or Redis

  • PostgreSQL — the all-round choice for new projects: strict transactions, JSON, full-text search, extensions such as PostGIS. More on its requirements on the VPS for PostgreSQL page.
  • MySQL and MariaDB — the standard for WordPress, Bitrix and most CMSs; they use less memory at small data sizes. See VPS for MySQL.
  • Redis — caching, queues and sessions; everything is stored in memory, so memory size is what determines the plan. See VPS for Redis.

Security and backups

Never expose your database port to the internet: PostgreSQL (5432), MySQL (3306) and Redis (6379) should listen only on 127.0.0.1 or a private network. If the application runs on another server, connect them through WireGuard or an SSH tunnel. Scanners find exposed databases within hours, and ransomware gangs encrypt the data.

A backup on the same server is not a backup. Set up a daily dump (pg_dump, mysqldump) or continuous log archiving and copy it somewhere else: to object storage or to a separate backup VPS. Once a month, check that you can actually restore from the copy.

Where to host it

Put the database in the same data center as the application: every extra 30–50 ms of network latency is multiplied by the number of queries per page. If you store personal data of Russian citizens, Federal Law 152-FZ requires the database to be in Russia — for that there's the VPS in Russia selection.

FAQ

How much memory does a database need?

Go by the size of your active data: it should fit in memory together with the indexes. Small projects get by with 2 GB, shops and CRMs need 4–8 GB, and large databases 16 GB or more.

Can I keep the database and the website on one VPS?

Yes, for small projects that's the usual setup: lower latency and a single bill. It's worth splitting them once the database starts taking memory away from the application or you need separate replication.

Will a SATA SSD do instead of NVMe?

For a small database with infrequent writes, yes. But NVMe is noticeably faster at small random operations and synchronous log writes, so for a production database NVMe is the better choice.

Which is better: my own VPS or a managed cloud database?

A managed database takes care of updates and backups, but costs 2–4 times more for the same memory. Your own VPS is better value if you're ready to set up backups and monitoring yourself.

How do I secure a database on a VPS?

Listen only on localhost or a private network, close the port with a firewall, use strong passwords and keep it updated. Remote access should go through an SSH tunnel or WireGuard.

How much does VPS for a database cost?

From 1.16 $ per month. A quarter of plans are cheaper than 19.63 $, half are cheaper than 39.96 $. In total 8,563 plans from 1,082 hosts.

Can I pay for VPS for a database by bank card or cryptocurrency?

By bank card at 620 hosts of 1082 (57%), by cryptocurrency at 316 (29%). Payment methods for each plan are in the Payment column.

How much does VPS for a database with 2 GB of RAM cost?

From 1.16 $ per month; with 4 GB from 1.16 $, with 8 GB from 1.16 $.

Which countries have the most plans?

Most plans are in in the USA, in Germany and in the Netherlands. You can pick a country in the filter, and prices and payment methods will update.

VPS/VDS collections

all 454 →

Prices and specs are taken from hosting providers' websites; check them on the website before paying, as hosts change plans without notice.