- What Is a Database Server?
- Database vs. DBMS vs. Database Server
- What Is a Database Server Used For?
- How Does a Database Server Work?
- Database Server vs. Web Server vs. Application Server
- Types of Database Servers
- Database Server Software Examples
- Self-Hosted or Managed
- What Makes a Database Server High-Performance?
- How to Choose and Run a Database Server
- FAQ
TL;DR
- A database server is a computer, physical or virtual, that runs a DBMS such as MySQL or PostgreSQL and answers data requests from applications over a network.
- The database is the data, the DBMS manages it, and the database server is where the DBMS runs. One server usually holds many databases.
- Choose the DBMS by data model and by what your team already knows.
- Speed depends mostly on RAM for caching and on storage latency.
- A VPS or dedicated server gives full control at a fixed price; a managed cloud database takes over administration and costs more.
- Before going live, set up daily off-server dumps, monitoring, and a database port closed to the internet.
What Is a Database Server?

A database server is the combination of database software and the machine it runs on. People use the term for either half.
The software half is the DBMS running as a service: mysqld for MySQL, a set of postgres processes for PostgreSQL. It accepts connections, runs queries, caches data in memory, and writes changes to disk. The hardware half is the CPU, RAM, storage, and network of a bare-metal machine or a VPS (see our guide to what a server is).
Context tells you which half someone means. When a developer says "the database is down," the VM is often fine and the mysqld process has crashed. A hosting provider means the machine.
Database vs. DBMS vs. Database Server
The three terms name different layers of the same setup.
|
Term |
What it is |
Example |
|
Database |
An organized set of data: tables, indexes, documents |
A shop database with orders and customers tables |
|
DBMS |
Software that stores and protects that data |
MySQL, PostgreSQL, MongoDB |
|
Database server |
A machine or VM where the DBMS runs and accepts client connections |
A VPS with 8 GB RAM where PostgreSQL listens on port 5432 |
One database server usually holds many databases. A single PostgreSQL instance can serve shop and analytics side by side, each with its own users and permissions.
So a database is not a server: it is data that needs a running DBMS. The server vs database split also shows up in your hosting bill: you rent the server, and the database's size and query pattern decide how big it has to be. For the data side, see what a database is.
What Is a Database Server Used For?
A database server lets many applications and users work with the same data at the same time without corrupting it. In practice, that covers four jobs:
- Shared access. Hundreds of application processes can query the same tables at once. The DBMS coordinates them so two customers can't buy the last item in stock.
- Consistent writes. A transaction either completes fully or leaves no trace. Money leaves one account only if it arrives in the other.
- Access control. Each application connects with its own account and gets only the privileges it needs. A reporting dashboard, for example, can read orders but can't delete them.
- Recovery. After a crash or power loss, the DBMS replays its transaction log and comes back with every committed change in place.
Typical workloads include online stores, SaaS back ends, CRM and ERP systems, analytics dashboards, and game servers that store player progress.
How Does a Database Server Work?

A database server works as a request-response loop: a client sends a query, the DBMS executes it against data in memory or on disk, and the result goes back.
Client-Server Model
The client is any program that connects to the DBMS: application code through a driver such as JDBC or psycopg, the psql command-line tool, or a GUI like DBeaver. It sends queries over TCP, or a local Unix socket on the same machine, and never touches the data files.
Each DBMS listens on its own default port: 3306 for MySQL, 5432 for PostgreSQL, 1433 for Microsoft SQL Server, 27017 for MongoDB, and 1521 for the Oracle listener. A query from the command line looks like this:
psql -h 10.0.0.5 -p 5432 -U app_user -d shop \
-c "SELECT id, total FROM orders WHERE customer_id = 42;"
Most server databases work this way. Embedded databases are the exception: SQLite runs as a library inside the application and reads its file directly, with no server process and no network connection.
VPS
Run MySQL, PostgreSQL, or any other DBMS on a VPS with root access in 40+ countries.
Key Components
A query passes through these parts of the DBMS; names differ between products.
|
Component |
What it does |
|
Connection handler |
Authenticates the client and assigns it a thread (MySQL) or a separate process (PostgreSQL) |
|
Parser and optimizer |
Checks syntax and picks an execution plan (which index, which join order); EXPLAIN shows it |
|
Execution engine |
Runs the plan and assembles the result |
|
Buffer cache |
Keeps frequently used pages in RAM (InnoDB buffer pool, PostgreSQL shared_buffers) |
|
Storage engine |
Reads and writes data pages on disk: InnoDB in MySQL, WiredTiger in MongoDB |
|
Transaction and lock manager |
Isolates concurrent sessions so they don't overwrite each other's changes |
|
Write-ahead log |
Records each change before the data files are updated, so committed transactions survive a crash |
|
Access control |
Checks users, roles, and privileges; handles TLS for connections and encryption at rest where it's enabled |
Replication
Replication keeps live copies of the data on other servers. Current MySQL documentation calls the main server the source and the copies replicas; PostgreSQL uses the terms primary and standby.
The source writes every change to a log, and replicas fetch and apply it. MySQL replication is asynchronous by default, so under load a replica can fall seconds or more behind. PostgreSQL covers its setups in the high availability chapter.
Replicas take read-heavy queries off the source, stand by for failover, and let you back up without loading it. They don't replace backups: a DROP TABLE on the source reaches every replica within seconds.
Database Server vs. Web Server vs. Application Server
A web server handles HTTP traffic, an application server runs business logic, and a database server stores and returns data. In most web projects they work as a chain.
|
Server |
Handles |
Talks to |
Examples |
|
Web server |
HTTP requests, TLS, static files, reverse proxying |
Browsers and the application server |
Nginx, Apache |
|
Application server |
Business logic: login, checkout, API endpoints |
The web server and the database server |
PHP-FPM, Gunicorn, Node.js, Tomcat |
|
Database server |
Stored data, queries, transactions |
The application server (and nothing public) |
MySQL, PostgreSQL, MongoDB |
A typical request travels from the browser to Nginx, then PHP-FPM, then MySQL, and back. For the front of that chain, see our comparison of web server software.
On a small project all three share one VPS. As traffic grows they split, and the database usually leaves first: a traffic spike on the web side can push it out of RAM. Web and application servers then scale out behind a load balancer, while the database gets a machine with more RAM and fast disks.
Types of Database Servers
The most useful way to split types of database servers is by data model: how the DBMS structures data and which queries it handles well.
|
Type |
How data is stored |
Example DBMS |
Typical use |
|
Relational |
Tables with a fixed schema, linked by keys, queried with SQL |
PostgreSQL, MySQL |
Orders, payments, inventory |
|
Document |
JSON-like documents with flexible fields |
MongoDB |
Product catalogs where items have different attributes |
|
Key-value |
A value looked up by a single key |
Redis |
Sessions, caches, rate-limit counters |
|
Wide-column |
Rows with dynamic columns, partitioned across nodes |
Apache Cassandra |
High-volume writes such as event logs and sensor data |
|
Graph |
Nodes and the relationships between them |
Neo4j |
Recommendations, fraud detection through relationship chains |
The four non-relational types are often grouped as NoSQL, and the line has blurred: PostgreSQL indexes JSON in jsonb columns, and MongoDB supports multi-document ACID transactions. Pick by your application's dominant access pattern; many stacks run two types side by side, such as PostgreSQL for orders and Redis for sessions.
Where they run is the second axis, covered in the hosting section below.
Dedicated Server
A whole machine's RAM and disk throughput for databases that have outgrown a VPS.
Database Server Software Examples
These database server examples cover most production setups. They're grouped by license and data model, not ranked by popularity.
MySQL
MySQL is an open-source relational DBMS owned by Oracle. The Community Edition is free under the GPL, and its default engine, InnoDB, is transactional. WordPress and Magento run on MySQL or its fork MariaDB.
Strengths: a large ecosystem of tools and admins who know it, built-in replication, installation from standard Linux repositories, and FULLTEXT indexes for text search on InnoDB tables.
Limitations: some tools, such as MySQL Enterprise Backup, ship only in the paid Enterprise Edition. MariaDB has drifted away from MySQL (more on that in the FAQ).
Documentation: MySQL 9.7 Reference Manual
PostgreSQL
PostgreSQL is an open-source object-relational DBMS under the permissive PostgreSQL License. It fits complex queries, reporting on live data, and mixed relational and JSON data.
Strengths: full ACID compliance, multiversion concurrency control (readers don't block writers), close SQL standard support, and extensions such as PostGIS for geodata.
Limitations: every connection is a separate OS process, so hundreds of idle connections cost RAM, and production setups usually add a pooler such as PgBouncer. Major version upgrades need pg_upgrade, a dump and restore, or logical replication.
Documentation: PostgreSQL documentation
Microsoft SQL Server
Microsoft SQL Server is a commercial relational DBMS that runs on Windows and on supported Linux distributions such as Ubuntu and RHEL. It's the default choice for teams built around .NET and Active Directory.
Strengths: integration with Microsoft tools, SQL Server Management Studio, Integration Services, and Power BI Report Server for on-premises reporting in paid editions. Free editions: Express (up to 50 GB per database, 4 cores, and about 1.4 GB of memory for the buffer pool) and Enterprise Developer or Standard Developer (all features of the matching edition, not for production).
Limitations: Enterprise is licensed per core, and Standard per core or per server plus client access licenses (CALs). On a small VPS, these licenses can cost more than the server itself. is*hosting VPS plans from Start upward offer licensed Windows Server 2022 images; SQL Server is licensed separately.
Documentation: SQL Server technical documentation
Oracle Database
Oracle Database is a commercial relational DBMS for large enterprises, such as banks and telecom operators with heavy transactional load.
Strengths: Real Application Clusters (RAC) for running one database across several servers, mature partitioning, and PL/SQL. A free edition with hard resource caps covers development and small workloads.
Limitations: licensing is priced per processor or per named user, and options such as RAC cost extra. Oracle's rules for virtualized environments are strict, so check them before you run Oracle Database on a VPS.
Documentation: Oracle Database documentation
MongoDB
MongoDB is a document database that stores records as BSON (binary JSON). The Community Server is free under the Server Side Public License (SSPL); Enterprise Advanced and the managed Atlas service are commercial. It suits catalogs and event data where the shape of a record changes over time.
Strengths: a flexible schema, built-in sharding for horizontal scaling, and replica sets with automatic failover. MongoDB has supported multi-document ACID transactions since version 4.0 on replica sets and 4.2 on sharded clusters, according to its transactions documentation.
Limitations: transactions cost performance and have a default runtime limit of 60 seconds, so data that changes together should live in one document where possible. The SSPL isn't OSI-approved, which matters if you plan to offer MongoDB itself as a service.
Documentation: MongoDB manual
Self-Hosted or Managed: Where to Run a Database Server
You can run a database on your own hardware, on a rented VPS or dedicated server, or as a managed service. The options differ in who handles updates and failover, and how much control you keep.
|
Option |
Who maintains the DBMS |
Your control |
Fits when |
|
Own hardware |
Your team, including hardware repairs |
Full |
Internal rules require data on your premises, and you have the staff |
|
VPS or dedicated server |
Your team; the provider runs hardware and network |
Root access, any DBMS, version, and extension |
You want a fixed monthly price, custom settings, and a server in a specific country |
|
Managed cloud database (Amazon RDS, Google Cloud SQL, Azure SQL Database, MongoDB Atlas) |
The provider |
No OS access; limited extensions and settings |
You'd rather pay more than run database operations yourself |
A managed database is a PaaS product, usually billed by instance time, storage, backups, and outbound traffic, so the total depends on usage.
is*hosting sells the middle option: VPS and dedicated servers in 40+ countries. You get root access and install any DBMS; we run the hardware and the network. Database administration (updates, tuning, dumps, monitoring) stays with you. Our managed vs. unmanaged hosting comparison helps decide how much of that you want.
A VPS covers most small and mid-size databases. A dedicated server makes sense when the database needs a whole machine's RAM and disk throughput or you don't want a shared physical host.
Location matters as much as the plan. Put the database host in the same data center as the application servers: every query is a network round trip, and a page that runs 30 queries pays that latency 30 times. For users spread across regions, keep one source for writes and add read replicas near them. The GDPR restricts transfers of personal data outside the EU, so many teams keep EU customers' data on EU servers.
What Makes a Database Server High-Performance?
A high-performance database server keeps working data in RAM, writes its log to low-latency storage, and sits next to the application. Query and index design decide how much hardware you need.
RAM
The buffer cache is the biggest lever: when frequently used data and indexes fit in memory, reads skip the disk. The MySQL manual notes that on dedicated database servers up to 80% of physical memory is often given to the InnoDB buffer pool. PostgreSQL suggests starting shared_buffers at 25% of RAM, because it also relies on the operating system's page cache. To check the current settings:
-- MySQL: buffer pool size in MB
SELECT @@innodb_buffer_pool_size / 1024 / 1024 AS buffer_pool_mb;
-- PostgreSQL: shared buffers and cache hit percentage
SHOW shared_buffers;
SELECT round(sum(blks_hit) * 100.0 / nullif(sum(blks_hit) + sum(blks_read), 0), 2) AS cache_hit_pct
FROM pg_stat_database;
This percentage counts hits in shared_buffers only; reads served from the OS page cache show up as misses. If it keeps dropping as data grows, the working set no longer fits in shared_buffers. If disk reads and I/O wait grow at the same time, it has outgrown RAM.
Storage
A transaction is committed only after its log record reaches disk, so storage latency caps write throughput. NVMe drives handle database random I/O far better than SATA SSDs or HDDs. All is*hosting VPS plans run on NVMe.
CPU
Large sorts and many concurrent connections need cores. PostgreSQL can spread one large query across workers; MySQL generally runs a query on one thread, so extra cores help it with concurrency more than with one slow query.
Queries and Indexes
Hardware won't fix a missing index. Run EXPLAIN on your slowest queries.
A rough sizing start: about 2 GB of frequently used data fits a Medium plan (4 GB RAM) with room for the OS; at 5 to 6 GB, look at Premium (8 GB) or Elite (16 GB). Every is*hosting VPS plan has paid RAM and disk upgrades for when the database grows.
How to Choose and Run a Database Server
Choose the DBMS by data model and by what your team already knows. Then set up backups, monitoring, and security before the first production write.
Choosing the DBMS
Choosing database server software starts with the shape of your data (see the types table and software examples above). After that, team experience counts as much as features: the DBMS your team can debug at 3 AM beats one that looks stronger on paper. Decide early whether you'll grow into a bigger server or out to replicas and shards; our guide to software scalability covers both paths.
On a fresh Ubuntu VPS, PostgreSQL is three commands away:
sudo apt update && sudo apt install -y postgresql
sudo systemctl status postgresql
sudo -u postgres psql -c "SELECT version();"
Backups
Plan backups around how much data you can afford to lose. For small and mid-size databases, logical dumps are enough:
# MySQL/InnoDB: consistent dump without locking tables
sudo mysqldump --single-transaction --routines shop > shop_`date +%F`.sql
# PostgreSQL: compressed custom-format dump
sudo -u postgres pg_dump -Fc shop > shop_`date +%F`.dump
Larger databases need physical backups with point-in-time recovery, such as pg_basebackup with WAL archiving or Percona XtraBackup for MySQL. Restore a backup on a separate server from time to time: one you've never restored is a hypothesis.
Every is*hosting VPS plan includes free weekly whole-server backups. They're a safety net: a weekly image can be seven days old, and one taken while the DBMS writes is only crash-consistent. Run dumps at least daily and copy them off the server, for example to is*hosting Storage. For scheduling, see types of data backup and backup and disaster recovery.
Monitoring
Watch the metrics that break databases first: free disk space (a full disk stops all writes), replication lag, slow queries, connections against max_connections, and cache hit rate. The slow query log in MySQL and the pg_stat_statements extension in PostgreSQL show which queries cost the most. Tools and alert thresholds are in our guide to server performance monitoring.
Security
Keep the database port closed to the internet. Automated scanners look for open database ports around the clock, and in 2017 attackers wiped tens of thousands of unprotected MongoDB instances and left ransom notes. Bind the DBMS to localhost (bind-address = 127.0.0.1 in MySQL, listen_addresses = 'localhost' in PostgreSQL; both are Ubuntu defaults). If the application runs on another server, make the DBMS listen on an address that server can reach, such as a private IP in the same network. Then allow the application’s address in pg_hba.conf (PostgreSQL) or in the database user’s host (MySQL), and open the port only for that address:
sudo ufw allow from 203.0.113.10 to any port 5432 proto tcp
ufw is inactive by default on Ubuntu, so the rule above won’t block anything until you enable it. Check the status, allow SSH first so you don’t lock yourself out, then turn the firewall on:
sudo ufw status
sudo ufw allow OpenSSH
sudo ufw enable
If SSH runs on a non-standard port, allow that port instead of OpenSSH.
Give each application its own database user with minimum privileges and use TLS between servers. Install DBMS security updates on a schedule. For the OS layer, see our Linux server security guide.
FAQ
-
No. MariaDB started in 2009 as a fork of MySQL and was a drop-in replacement in its early versions. The two have since diverged in features such as JSON handling and replication with global transaction IDs, so test your application before switching.
-
Yes. A small database can be moved with a dump and restore during a maintenance window. For larger databases or near-zero downtime, set up the new server as a replica, let it catch up, then switch the application to it. With is*hosting, a server in another of our 40+ locations is a new order under the same account, so the new database host and the old one can run in parallel during the switch.
-
Through an SSH tunnel. The database keeps listening on localhost, and your client reaches it over SSH:
ssh -N -L 5433:127.0.0.1:5432 user@your-server-ip psql -h 127.0.0.1 -p 5433 -U app_user -d shopRun the second command in another terminal. For MySQL, forward port 3306 to a free local port and connect over TCP, not through localhost:
ssh -N -L 3307:127.0.0.1:3306 user@your-server-ip mysql -h 127.0.0.1 -P 3307 -u app_user -p shopEvery is*hosting VPS includes root SSH access.
Backup Storage
Store your backups in a safe place — is*hosting takes care of the protection.
From $1.00/mo- What Is a Database Server?
- Database vs. DBMS vs. Database Server
- What Is a Database Server Used For?
- How Does a Database Server Work?
- Database Server vs. Web Server vs. Application Server
- Types of Database Servers
- Database Server Software Examples
- Self-Hosted or Managed
- What Makes a Database Server High-Performance?
- How to Choose and Run a Database Server
- FAQ