# Database Server

> A server that runs a database. Apps ask it for data, and it sends it back.

**Field:** Infrastructure  
**Category:** Servers  
**Also known as:** DB Server, Database Host

## Think of it like

Think of it like a librarian. You ask for a book, and they find it fast and hand it to you.

## Definition

A database server is a server that runs a database and answers questions about its data. Apps send it queries over the network, and it sends back the rows they asked for. It is often kept apart from the web server. That way each one gets its own memory and disks. It should never be open to the whole internet.

## Example

Jack's web shop runs on two servers. The web server shows the pages. The database server holds every order.

## Why it matters

Data is often the most precious thing a firm owns. A database server keeps it in one guarded place.

## Common mistake

Leaving the database port open to the web. Hackers scan for open ones all day long.

## Three principles

- **Answers queries.** Apps ask, it returns rows.
- **Kept apart.** Its own machine, its own memory.
- **Kept private.** Only the app may reach it.

## Related terms

- [Database](https://learn.benibix.com/term/development/database)
- [Server](https://learn.benibix.com/term/infrastructure/server)
- [File Server](https://learn.benibix.com/term/infrastructure/file-server)
- [Firewall](https://learn.benibix.com/term/infrastructure/firewall)
- [Network Port](https://learn.benibix.com/term/infrastructure/port)

## Taught in

- [Server Types and Roles](https://learn.benibix.com/learn/infrastructure-servers/server-types-and-roles): Servers and Racks, 2/8

![An office network. Three laptops link to a switch in the middle. Around the switch sit four servers, each with its own job: a file server holding shared folders, a small NAS box holding backups, a mail server holding inboxes, and a database server holding tables of records.](https://learn.benibix.com/diagrams/inf3-server-roles.svg)

---

Source: https://learn.benibix.com/term/infrastructure/database-server
Author: Behnia Zarei (a developer in Vienna, Austria, who builds and teaches data, AI and business intelligence at BENIBIX)
Publisher: BENIBIX Learn (https://learn.benibix.com/)
Last updated: 2026-11-19
Licence: CC BY 4.0 (https://creativecommons.org/licenses/by/4.0/). Quote freely with attribution.
