MariaDB tutorials
MariaDB Tutorials: Learn MariaDB Step by Step
Every MariaDB tutorial on DatabaseFAQs.com, grouped by topic. Install MariaDB, create databases and users, then learn queries, joins, dates and stored procedures.
Coming from MySQL? Most of what you know carries over.
- 130free MariaDB tutorials
- 16topics
- Oct 2026last updated
New to MariaDB? Start here
Read these in order. Each one builds on the one before it.
- How to install MariaDBInstall MariaDB and log in for the first time.
- How to Create Database in MariaDBCreate your first database.
- MariaDB Create Database and User (With GRANT and Login Test)Add a user and grant it access.
- How to Create Table in MariaDBCreate a table with keys and data types.
- MariaDB Select Statement- Detailed GuideRead and filter your data.
- MariaDB Join with ExamplesCombine data from related tables.
The basics5
What it is, what it's good for, and the questions people ask before they commit to it.
Install, connect and tools9
Install it, connect to it, and get your tools working.
Databases, tables and columns24
Create and change databases, tables, columns, keys, indexes and views.
- How to Add Column in MariaDB [5 Examples]
- How to Change Column in MariaDB
- How to create a database from an SQL file in MariaDB
- How To Create Views In MariaDB
- How to Delete a Database in MariaDB
- How to Drop Column from MariaDB Table
- How to Drop Constraint in MariaDB
- How to List Databases in MariaDB
- How to Select a Database in MariaDB
- How to Show Tables in MariaDB
- MariaDB Add Column With Default Value
- MariaDB Alter Table If Exists
- MariaDB Check Constraint + Examples
- MariaDB Create Sequence + Examples
- MariaDB Drop Table
- MariaDB Foreign Key + Examples
- MariaDB Primary Key
- MariaDB Rename Column + Examples
- MariaDB Rename Table
- MariaDB Rename View [Complete tutorial]
- MariaDB Temporary Table: Create, From Select, Index and Drop
- MariaDB Unique Key
- How to Create Database in MariaDB
- How to Create Table in MariaDB
Data types6
Pick the right data type for every column.
SELECT queries, filtering and grouping22
Read data with SELECT, filter it, sort it and summarize it.
- How to use MariaDB Not Equal Operator
- MariaDB Between
- MariaDB Check If Rows Exists [With 11 real examples]
- MariaDB Comment – How to use
- MariaDB GROUP BY [With 9 useful example]
- MariaDB If Null + Examples
- MariaDB If statement in Select
- MariaDB Insert If Not Exists
- MariaDB ISNULL + Examples
- MariaDB LIMIT + Examples
- MariaDB Median – Complete Tutorial
- MariaDB Order By
- MariaDB Order By Decreasing [17 Amazing Examples]
- MariaDB Queries – Detailed Guide
- MariaDB query example
- MariaDB Row_Number Tutorial
- MariaDB See If Table Exists
- MariaDB Select Into + Examples
- MariaDB Select Unique [With 21 Amazing Examples]
- MariaDB Select Where Not Empty
- MariaDB Union Operator
- MariaDB Select Statement- Detailed Guide
Joins3
Combine rows from two or more tables.
Insert, update and delete8
Add, change and remove rows safely.
Strings, numbers and conversions6
Work with text and numbers, and convert between types.
Dates and times8
Format, compare and calculate dates and times.
Functions7
Built-in functions and the ones you write yourself.
Stored procedures, variables and control flow6
Stored procedures, variables, IF/CASE logic, loops, error handling and transactions.
Triggers1
Run code automatically when rows are inserted, updated or deleted.
Users, logins and permissions6
Create users, reset passwords and grant the right permissions.
Backup, import/export and administration7
Back up, restore, import, export, migrate and monitor.
Errors and fixes4
The exact error message, what causes it and the steps that fix it.
Comparisons8
Side-by-side comparisons to help you choose.
Other database tutorials
Looking for everything, newest first? See the full tutorial list.
Frequently Asked Questions
Is MariaDB free?
Yes. MariaDB Server is open source under the GPL and free to use, including in production.
Is MariaDB the same as MySQL?
No, but it’s close. MariaDB began as a fork of MySQL, so most SQL, client tools and connectors work with both. Newer features differ, so check the version you’re running.
Where should a beginner start?
Follow the six steps at the top of this page: install MariaDB, create a database and user, create a table, then learn SELECT and joins.