-
Notifications
You must be signed in to change notification settings - Fork 0
MariaDB
Cisco edited this page Oct 27, 2025
·
3 revisions
- open source (GNU GPL)
- MySQL compatible
- supports multiple storage engines : InnoDB (Default), MyISAM, ARIA
-
varfor identifiers (db name, ...) - 'var' for string literals (password,...)
CREATE DATABASE name;USE name;
CREATE TABLE name (column1 datatype, ...);DROP TABLE name;ALTER TABLE name ADD column datatype;ALTER TABLE name DROP column;
INSERT INTO table (column1, ...) VALUES (value1, ...);UPDATE table SET column = value WHERE condition;DELETE FROM table WHERE condition;
SELECT column FROM table WHERE condition;- GROUP BY
- ORDER BY
... INNER JOIN table2 on table1.column = table2.column;- LEFT JOIN
- COUNT
- AVG
- SUM
- MIN
- MAX
CREATE INDEX name ON table (column);
CREATE VIEW name AS SELECT columns FROM table WHERE condition;
BEGIN;COMMIT;ROLLBACK;
cf
mysql -e : execute SQL commands in the command line
- status
docker ps - infos
docker inspect mariadb: IP address, ... - logs
docker logs mariadb - active processes
docker top mariadb - resources
docker stats mariadb - test connectivity from other containers
mysql -h 127.0.0.1 -u root -p
docker exec -it mariadb mysql -u root -phttps://www.ubuntumint.com/install-mariadb-alpine-linux/ https://wiki.alpinelinux.org/wiki/MySQL