Database
A database is an organized collection of data stored and managed by a database management system (DBMS), which lets many applications and users write, query, update and delete information concurrently and safely. Practically every modern service depends on one — from a personal blog and an online store to banking platforms and IoT backends.
How a database works
In the dominant relational model, data lives in tables made of rows and columns, and relationships between tables are expressed through primary and foreign keys. Applications talk to the engine using SQL, a declarative language for queries, updates and schema changes. The engine guarantees ACID properties — atomicity, consistency, isolation and durability — so that concurrent operations cannot corrupt data, and it uses indexes to answer queries on millions of rows without scanning entire tables.
Relational vs. non-relational systems
The most widely deployed relational engines are MySQL, MariaDB and PostgreSQL. Alongside them, NoSQL systems — document stores like MongoDB, key-value stores like Redis, plus columnar and graph databases — drop the rigid schema in favor of flexibility and horizontal scaling, which pays off under heavy traffic and fast-changing data structures.
Practical applications
Content management systems such as WordPress or PrestaShop keep everything — posts, settings, user accounts, orders — in a MySQL or MariaDB database. On shared hosting you create a database with a few clicks in the control panel, while a VPS gives you full control over the engine: buffer sizing, query tuning, replication and version choice. Whatever the environment, three habits keep a database healthy: regular backups, strong credentials with minimal privileges, and well-chosen indexes, which can cut application response times from seconds to milliseconds.
Powiązane pojęcia
Najczęstsze pytania
What is the difference between SQL and NoSQL databases?
SQL databases store data in tables with a fixed schema and enforce ACID transactions, which makes them ideal for financial and transactional data. NoSQL systems trade strict consistency for flexible data models and easy horizontal scaling, suiting high-traffic and rapidly evolving applications.
