What is a DBMS, and what are its advantages over a file system?
EasyConceptDBMS Fundamentals
Answer
A database management system (DBMS) is software that stores data in an organised way and controls how users create, read, update and delete it. MySQL, PostgreSQL, Oracle and SQL Server are examples. In a file system, each application keeps its own files and must handle searching, sharing and safety by itself.
- Less redundancy and inconsistency: data is stored once and shared, instead of being copied into many files.
- Easy querying: one SQL statement retrieves data that would otherwise need custom file-reading code.
- Integrity and security: constraints reject invalid data, and permissions control who can see or change what.
- Concurrency and recovery: many users can work at the same time, and committed data survives crashes through logs and backups.
Example: A college stores student addresses in both library.txt and fees.txt. When a student moves, one file is updated and the other is forgotten, so the two files disagree. In a DBMS, the address is stored once in a students table, and both departments read the same row.