How mohamed8483/server works
MariaDB Server is a MySQL-compatible relational database with pluggable engines, replication and clustering, advanced SQL, security, and observability. The principal workflow is a client submitting SQL to the server, which processes it and accesses data through a storage engine. The tree and excerpts support several component boundaries, but do not show the complete SQL execution path; dashed, uncited links mark that evidence limit. README-described capabilities are included even where their implementation was not sampled.
Main entry points: mysqld.h Server runtime · handler.h Storage engine API · sql_class.h Session context · sql Advanced SQL
Components 23
Server core
- Client protocol
include/mysql_com.h - Server runtime
sql/mysqld.h - Session context
sql/sql_class.h - Table metadata
sql/table.h - SQL fields
sql/field.h
Data engines
- Storage engine API
sql/handler.h - InnoDB
storage/innobase - Aria
storage/maria - MyRocks
storage/rocksdb - Spider sharding
storage/spider - ColumnStore analytics
storage/columnstore - DuckDB integration
storage/duckdb/runtime/cross_engine_scan.cc
Replication and operations
- Replication
sql - Galera clustering
sql/wsrep_storage_service.cc - Backup and restore
extra/mariabackup
SQL and extensions
- Advanced SQL
sql - Vector search
sql - Spatial and full-text
plugin/fulltext
Security and observability
- Authentication
plugin/auth_ed25519/server_ed25519.c - Data encryption
plugin/file_key_management/file_key_management_plugin.cc - Performance Schema
storage/perfschema/pfs_engine_table.cc
Other components
- SQL client
- Query results
Connections 22
- SQL client → Client protocol: sends SQL
- Client protocol → Server runtime: dispatches requests
sql/mysqld.h - Server runtime → Session context: handles sessions
- Session context → Table metadata: accesses tables
- Table metadata → SQL fields: describes columns
sql/field.h - Session context → Storage engine API: accesses data
- Storage engine API → InnoDB: delegates storage
- Storage engine API → Aria: delegates storage
- Storage engine API → MyRocks: delegates storage
- Storage engine API → Spider sharding: delegates storage
- Storage engine API → ColumnStore analytics: delegates storage
- Storage engine API → DuckDB integration: delegates scans
storage/duckdb/runtime/cross_engine_scan.cc - Server runtime → Advanced SQL: supports SQL
sql/mysqld.h - Advanced SQL → Vector search: includes search
- Advanced SQL → Spatial and full-text: includes search
- Server runtime → Replication: supports replication
sql/mysqld.h - Server runtime → Galera clustering: integrates clustering
sql/wsrep_storage_service.cc - Backup and restore → InnoDB: backs up data
extra/mariabackup/common_engine.cc - Server runtime → Authentication: authenticates clients
- Server runtime → Data encryption: supports encryption
- Server runtime → Performance Schema: exposes metrics
- Server runtime → Query results: returns results