Pcornel
Browse topics
Options
Recent
Favorites
Databases · Technical reference

MariaDB / MySQL

Direct answer

MariaDB and MySQL are open-source relational databases, usually with the InnoDB storage engine, configured in my.cnf and managed with the mysql client and mysqladmin.

When to use this

Use it to operate or troubleshoot MariaDB/MySQL servers.

First 30 seconds

1. systemctl status mariadb (or mysqld) and the error log.

2. SHOW GLOBAL STATUS LIKE 'Threads_connected'; vs max_connections.

3. Buffer pool size and hit rate.

4. Slow log enabled?

5. Replication status if used.

Operational verification

client → mysqld → InnoDB (buffer pool, redo, binlog) → disk

Evidence · next step

Failures commonly involve host-specific grants, authentication plugin differences, exhausted connections, InnoDB recovery/space pressure, binlog/GTID mismatches, replicas that are connected but not applying, and backups that were never restore-tested. Preserve the first divergent observation and repeat the same bounded verification after remediation.

Continue only after interpreting the current observation.
Context & applicabilityCommon mistakes · platform/version boundaries
Common mistakes
What not to infer

Databases owns MariaDB/MySQL engine behavior. Linux/Windows own the service host; Storage owns underlying disk/filesystem reliability; Security owns broader credential policy.

Platform / version applicability
MariaDB / MySQL / PostgreSQL / Microsoft SQL Server concepts
applies
Structured applicability is explicit Topic metadata; it does not infer compatibility beyond the stored rows.
At a glance

Operational reference

Fast context before you go deeper.

PlatformMariaDB / MySQL / PostgreSQL / Microsoft SQL Server concepts · Databases owns MariaDB/MySQL engine behavior. Linux/Windows own the service host; Storage owns underlying disk/filesystem reliability; Security owns broader credential policy.
Scope / prerequisiteUse it to operate or troubleshoot MariaDB/MySQL servers.
What next?3 suggested next steps
Child topics (this level)3
Evidence1
On this pageJump to a specific section
Operational workflow

Verification & Troubleshooting

Start with the observed symptom, prove the nearest boundary, and move outward only when the current state is understood.

2 steps Observe → verify → isolate → change minimally → repeat the original test.
ObservedRecord what the original test actually shows

Capture the concrete output, symptom, packet, log or counter before changing anything.

Step 1 Verification workflow Verify boundary

Confirm server product/version, active configuration variables, listening socket/port, authentication account/host match and InnoDB health. For data protection, show a restore into an isolated target; for replication, verify source position/GTID state and replica apply health/lag.

Step 2 Failure signatures and limits Narrow the fault

Failures commonly involve host-specific grants, authentication plugin differences, exhausted connections, InnoDB recovery/space pressure, binlog/GTID mismatches, replicas that are connected but not applying, and backups that were never restore-tested.

Evidence references

Evidence · 1 on this Topic

Expected observations and documentation recipes are reference material. Record actual output, device identity, scope and time before claiming a verified result.

test · 1
Drill down

Subtopics

Go one level deeper into this subject.

Key points

Know which fork and version (features differ). Tune innodb_buffer_pool_size first. Use the slow query log, binary logs for PITR/replication, and least-privilege users.

Key checks
  • SHOW GLOBAL VARIABLES LIKE 'innodb_buffer_pool_size'; — buffer pool size
  • psql -c "SELECT now(), version();" — PostgreSQL reachable and version
  • mysql -e "SELECT NOW(), VERSION();" — MariaDB/MySQL reachable and version
  • sqlcmd -S <server> -Q "SELECT @@VERSION" — SQL Server reachable and version
ReferenceWhat it is1 section · depth on demand

Operating model

MariaDB / MySQL covers operation of the MySQL-family server with InnoDB as the normal transactional engine: server configuration, schemas/users/privileges, connection handling, logs, binary logging, backup/restore and replication. Product/version differences between MariaDB and Oracle MySQL must be checked before copying configuration or replication features.

ReferenceHow it works1 section · depth on demand

In depth

MariaDB and MySQL are widely used open-source relational databases sharing a common origin. Most production setups use the InnoDB storage engine, which provides transactions, row-level locking and crash recovery.

Operational essentials:

AreaPractice
Configurationinnodb_buffer_pool_size ~50–75% of RAM on dedicated servers; max_connections sized realistically
Securitymariadb-secure-installation, no anonymous users, accounts restricted by host, TLS
Backupmariadb-backup/xtrabackup (hot physical) or mariadb-dump --single-transaction (logical) plus binary logs for point-in-time recovery
ReplicationBinary log based (GTID), Galera cluster for multi-primary (MariaDB)
MonitoringSlow query log, performance_schema, SHOW GLOBAL STATUS
mariadb -e "SHOW GLOBAL STATUS LIKE 'Threads_connected'; SHOW PROCESSLIST;"
mariadb-dump --single-transaction --routines --triggers appdb | gzip > appdb.sql.gz

MariaDB and MySQL have diverged (versions, features, GTID formats) — check compatibility before replicating or migrating between them.

ReferenceImportant terms & boundaries1 section · depth on demand

Scope map

  • Server architecture
  • Databases/users/privileges
  • InnoDB
  • Configuration files and variables
  • Logs
  • Connection troubleshooting
  • Backup/restore
  • Binary log and replication
Additional reference context Scope · expected state · examples · history · terminology Open only when you need the supporting context
Technical examples

Configuration & expected output

Concrete examples are shown only when the stored reference contains an actual configuration or output shape for this Topic.

Configuration example

MariaDB / MySQL MariaDB 10.6+ / MySQL 8.0+Core InnoDB and connection settings in a server option file.

Assumptions: Values sized for a dedicated 16 GB server; adjust to your memory and workload.

# /etc/mysql/mariadb.conf.d/60-app.cnf
[mysqld]
bind-address            = 10.0.10.21
max_connections         = 300
innodb_buffer_pool_size = 10G
innodb_log_file_size    = 1G
innodb_flush_log_at_trx_commit = 1
sync_binlog             = 1
log_bin                 = mysql-bin
binlog_format           = ROW

Expected output

MariaDB / MySQL MariaDB 10.6+ / MySQL 8.0+mariadb -e "SHOW GLOBAL VARIABLES WHERE Variable_name IN ('innodb_buffer_pool_size','innodb_flush_log_at_trx_commit','log_bin');"

Expected state: The running server reports the values from the option file.

+--------------------------------+-------------+
| Variable_name                  | Value       |
+--------------------------------+-------------+
| innodb_buffer_pool_size        | 10737418240 |
| innodb_flush_log_at_trx_commit | 1           |
| log_bin                        | ON          |
+--------------------------------+-------------+
Edits to the file only take effect after restart unless the variable is dynamic; always read the live value back. Illustrative authored output: field layout matches the tool, values will differ in your environment.
Technical verification history

Verification history & basis

When and against what this Topic was checked. Later text edits do not count as a new check.

2026-09-29 · vendor docMariaDB / PostgreSQL / Microsoft SQL Server concepts MariaDB Server current documentation

Documentation verification: confirms the upstream model used by the Topic. It does not assert local production behavior.

Basis: https://mariadb.com/docs/server/ · confidence 92%
Technical changelog & impact

What changed and what may be affected

Recent technical edits are separated from ordinary page timestamps. Relationship impact is advisory: it identifies nearby canonical references to review, not automatic breakage.

Related reference impactReview these references after material technical changes when their shared boundary is affected.
Terminology layer

Terms & aliases

Hover a linked term for a quick definition; click it to open its glossary entry. Aliases are other names that find this Topic in search.

Aliases that resolve here
mariadb / mysqlMariaDB operationsMySQL operationsInnoDBMySQL replication
Embedded reference data

Quick lookup tables

MariaDB / MySQL verification boundary matrix

A compact lookup separating intent, owning component state, effective state and consumer-visible outcome for MariaDB / MySQL.

BoundaryInspectHealthy interpretationDo not infer
IntentServer architectureIntended object/scope is explicit and versioned where relevantIntent is already effective
Owning runtime/control planeDatabases/users/privileges / InnoDBOwner accepts and reports the expected object stateDownstream dependencies are healthy
Effective stateConfiguration files and variablesIndependent read-back matches the intended stateEvery client sees the same result
Consumer outcomeLogsThe original bounded check succeeds in the same time windowProduction correctness outside this scope
Depth when you need it

Deep reference

Design & tradeoffs

Scope

Databases owns MariaDB/MySQL engine behavior. Linux/Windows own the service host; Storage owns underlying disk/filesystem reliability; Security owns broader credential policy.

Confirmation

Confirm action

Continue?