Skip to main content

CompTIA A+View full course outline

Database Servers(OBJ.2.3)

By Jonathon Eades — Founder & IT InstructorUpdated

20 min read

Short answer

A database server is a system that centrally stores, manages, and provides access to structured data for applications and users. Clients send SQL queries, and the server parses, optimizes, executes, and returns results. Default TCP ports: SQL Server 1433, MySQL and MariaDB 3306, PostgreSQL 5432, Oracle 1521.

A database server is a system that stores, manages, and provides access to structured data for applications and users. Rather than storing information in scattered files across multiple computers, organizations centralize data on database servers where it can be efficiently organized, queried, secured, and backed up.

Nearly every modern application relies on database servers. When you check your bank balance, browse an online store, or search company records, your request travels to a database server that retrieves the relevant information. Database servers handle everything from small departmental applications to massive systems processing millions of transactions per second.

How Database Servers Work

Database servers operate on a client-server model. Client applications send requests to the database server, which processes those requests and returns results.

The Query Process

When an application needs data, it establishes a connection to the database server using appropriate credentials. The application sends a query written in a database language, typically SQL (Structured Query Language). The database server parses and optimizes the query to determine the most efficient way to retrieve the data. The server executes the query against the stored data. Results return to the application, which presents them to the user.

Diagram: the database query process. A user works in an application, which 1 connects to the database server with credentials and 2 sends a SQL query such as SELECT name, email FROM customers; the server 3 parses and optimizes it, 4 executes it against the stored tables, and 5 returns the rows to the app. Default TCP ports: Microsoft SQL Server 1433, MySQL/MariaDB 3306, PostgreSQL 5432, Oracle 1521.
The query process: the app connects, sends SQL, and the server parses, optimizes, executes and returns rows.

This process happens constantly across organizations, with database servers handling hundreds or thousands of simultaneous queries from multiple applications and users.

Database Structure

Relational databases organize data into tables consisting of rows and columns. Each table stores information about a specific type of entity, such as customers, orders, or products. Columns define the attributes stored for each entity, like customer name, address, and phone number. Rows represent individual records, with each row containing data for one customer, one order, or one product.

Tables relate to each other through keys. A primary key uniquely identifies each row in a table. A foreign key in one table references the primary key of another table, creating relationships between data. These relationships allow complex queries that combine information from multiple tables.

Diagram: three relational tables. Customers has Customer_ID (primary key), Name and Address, with rows C101 Ana Ruiz 12 Oak St and C102 Ben Cole 4 Elm Ave. Products has Product_ID (primary key), Product_Name and Price, with P501 USB-C cable 12.99 and P502 Wireless mouse 24.50. Orders has Order_ID (primary key), Customer_ID and Product_ID (both foreign keys) and Order_Date, with O9001 C101 P502 2026-10-14 and O9002 C102 P501 2026-10-15; arrows run from each foreign key to the matching primary key. A table holds one type of thing, a row is one record, a column is one attribute, a primary key is unique for every row, and a foreign key holds another table's primary key.
A foreign key holds another table's primary key, linking the tables.

Types of Database Systems

Different database systems serve different needs based on data structure, scale, and use case.

Relational Databases (RDBMS)

Relational Database Management Systems store data in structured tables with defined relationships. They use SQL for data manipulation and enforce data integrity through constraints and transactions.

Microsoft SQL Server is widely used in Windows enterprise environments. It integrates well with other Microsoft products and offers robust management tools through SQL Server Management Studio. SQL Server uses TCP port 1433 by default.

MySQL is an open-source database popular for web applications. It powers many websites and content management systems including WordPress. MySQL uses TCP port 3306 by default. Oracle Corporation owns MySQL but offers a free community edition.

MariaDB is a community-developed fork of MySQL, created after Oracle acquired MySQL. It maintains compatibility with MySQL while adding features and improvements. MariaDB also uses TCP port 3306.

PostgreSQL is an advanced open-source database known for standards compliance and extensibility. It handles complex queries well and supports advanced data types. PostgreSQL uses TCP port 5432 by default.

Oracle Database is an enterprise-grade commercial database used by large organizations for mission-critical applications. It offers advanced features for high availability, security, and performance. Oracle uses TCP port 1521 by default.

NoSQL Databases

NoSQL databases handle unstructured or semi-structured data that doesn't fit well into traditional table formats. They sacrifice some relational features for flexibility and scalability.

Document databases like MongoDB store data as JSON-like documents. Each document can have a different structure, making them flexible for evolving applications. MongoDB uses TCP port 27017.

Key-value stores like Redis store simple key-value pairs for extremely fast access. They're often used for caching and session storage. Redis uses TCP port 6379.

Column-family databases like Apache Cassandra store data in columns rather than rows, optimizing for queries that read specific attributes across many records.

Graph databases like Neo4j store data as nodes and relationships, excelling at queries involving complex connections like social networks or recommendation engines.

SQL Fundamentals

SQL (Structured Query Language) is the standard language for interacting with relational databases. While IT support professionals rarely write complex queries, understanding basic SQL helps with troubleshooting and communication with developers.

Basic SQL Commands

SELECT retrieves data from tables. A simple query might read SELECT name, email FROM customers to retrieve customer names and email addresses.

INSERT adds new records to a table. The command INSERT INTO customers (name, email) VALUES ('John Smith', 'john@example.com') creates a new customer record.

UPDATE modifies existing records. The command UPDATE customers SET email = 'newemail@example.com' WHERE name = 'John Smith' changes a customer's email address.

DELETE removes records from a table. The command DELETE FROM customers WHERE name = 'John Smith' removes the specified customer record.

Database Objects

Beyond tables, databases contain other objects that support data management.

Views are saved queries that act like virtual tables. They simplify complex queries and can restrict which columns users see.

Stored procedures are prewritten code stored in the database that performs specific operations. Applications call stored procedures rather than sending raw SQL, improving security and consistency.

Indexes speed up queries by creating optimized lookup structures for frequently searched columns. Without proper indexes, queries must scan entire tables, dramatically slowing performance.

Triggers automatically execute code when specific events occur, such as inserting or updating records. They enforce business rules and maintain data consistency.

Database Server Administration

Managing database servers involves several ongoing responsibilities.

User Management and Security

Database servers maintain their own user accounts separate from operating system accounts. Administrators create database users, assign passwords, and grant permissions controlling which databases, tables, and operations each user can access.

The principle of least privilege applies strongly to database access. Users and applications should have only the minimum permissions necessary.

This lesson is part of ExamWizardz Pro

Unlock every lesson, unlimited practice tests, and the AI tutor.

See Pro pricing

or start with a free account

Test yourself on this topic: free Network Services and Servers practice questions — no account needed.

Key terms in this lesson