MariaDB is an open-source relational database that started as a fork of MySQL. If you know MySQL, you already know MariaDB β the commands, the drivers, and the tools are almost identical. The difference is in who controls it and how fast it improves.
How does it work? Like MySQL, MariaDB stores your data in tables with rows and columns, and you talk to it with SQL. You create a database, create tables, and insert and query rows.
CREATE DATABASE shop ; USE shop ;
CREATE TABLE customers ( id INT AUTO_INCREMENT PRIMARY KEY , name VARCHAR ( 100 ) , email VARCHAR ( 100 ) UNIQUE , created_at TIMESTAMP DEFAULT CURRENT_TIMESTAMP ) ;
INSERT INTO customers ( name , email ) VALUES ( 'Arhan' , '[email protected]' ) ; SELECT * FROM customers ;
Enter fullscreen mode
Exit fullscreen mode
MariaDB is great for beginners because everything you learn transfers directly to MySQL. Most tutorials, hosting panels, and frameworks that say "MySQL" work with MariaDB unchanged.β¦