$ -weight: 600;">sudo -weight: 500;">apt -weight: 500;">update
$ -weight: 600;">sudo -weight: 500;">apt -weight: 500;">update
$ -weight: 600;">sudo -weight: 500;">apt -weight: 500;">update
$ -weight: 600;">sudo -weight: 500;">apt -weight: 500;">install mariadb-server -y
$ -weight: 600;">sudo -weight: 500;">apt -weight: 500;">install mariadb-server -y
$ -weight: 600;">sudo -weight: 500;">apt -weight: 500;">install mariadb-server -y
$ mariadb --version
$ mariadb --version
$ mariadb --version
$ -weight: 600;">sudo -weight: 500;">systemctl -weight: 500;">enable mariadb
$ -weight: 600;">sudo -weight: 500;">systemctl -weight: 500;">start mariadb
$ -weight: 600;">sudo -weight: 500;">systemctl -weight: 500;">enable mariadb
$ -weight: 600;">sudo -weight: 500;">systemctl -weight: 500;">start mariadb
$ -weight: 600;">sudo -weight: 500;">systemctl -weight: 500;">enable mariadb
$ -weight: 600;">sudo -weight: 500;">systemctl -weight: 500;">start mariadb
$ -weight: 600;">sudo -weight: 500;">systemctl -weight: 500;">status mariadb
$ -weight: 600;">sudo -weight: 500;">systemctl -weight: 500;">status mariadb
$ -weight: 600;">sudo -weight: 500;">systemctl -weight: 500;">status mariadb
$ -weight: 600;">sudo -weight: 500;">systemctl -weight: 500;">stop mariadb
$ -weight: 600;">sudo -weight: 500;">systemctl -weight: 500;">restart mariadb
$ -weight: 600;">sudo -weight: 500;">systemctl -weight: 500;">stop mariadb
$ -weight: 600;">sudo -weight: 500;">systemctl -weight: 500;">restart mariadb
$ -weight: 600;">sudo -weight: 500;">systemctl -weight: 500;">stop mariadb
$ -weight: 600;">sudo -weight: 500;">systemctl -weight: 500;">restart mariadb
$ -weight: 600;">sudo mariadb-secure-installation
$ -weight: 600;">sudo mariadb-secure-installation
$ -weight: 600;">sudo mariadb-secure-installation
$ -weight: 600;">sudo -weight: 500;">systemctl -weight: 500;">restart mariadb
$ -weight: 600;">sudo -weight: 500;">systemctl -weight: 500;">restart mariadb
$ -weight: 600;">sudo -weight: 500;">systemctl -weight: 500;">restart mariadb
$ -weight: 600;">sudo mariadb -u root -p
$ -weight: 600;">sudo mariadb -u root -p
$ -weight: 600;">sudo mariadb -u root -p
MariaDB [(none)]> CREATE DATABASE myapp_db;
MariaDB [(none)]> CREATE USER 'myapp_user'@'localhost' IDENTIFIED BY 'secure_password';
MariaDB [(none)]> GRANT ALL PRIVILEGES ON myapp_db.* TO 'myapp_user'@'localhost';
MariaDB [(none)]> FLUSH PRIVILEGES;
MariaDB [(none)]> EXIT;
MariaDB [(none)]> CREATE DATABASE myapp_db;
MariaDB [(none)]> CREATE USER 'myapp_user'@'localhost' IDENTIFIED BY 'secure_password';
MariaDB [(none)]> GRANT ALL PRIVILEGES ON myapp_db.* TO 'myapp_user'@'localhost';
MariaDB [(none)]> FLUSH PRIVILEGES;
MariaDB [(none)]> EXIT;
MariaDB [(none)]> CREATE DATABASE myapp_db;
MariaDB [(none)]> CREATE USER 'myapp_user'@'localhost' IDENTIFIED BY 'secure_password';
MariaDB [(none)]> GRANT ALL PRIVILEGES ON myapp_db.* TO 'myapp_user'@'localhost';
MariaDB [(none)]> FLUSH PRIVILEGES;
MariaDB [(none)]> EXIT;
$ mariadb -u myapp_user -p myapp_db
$ mariadb -u myapp_user -p myapp_db
$ mariadb -u myapp_user -p myapp_db
MariaDB [myapp_db]> CREATE TABLE employees ( id INT AUTO_INCREMENT PRIMARY KEY, name VARCHAR(100) NOT NULL, role VARCHAR(100), department VARCHAR(100)
);
MariaDB [myapp_db]> MariaDB [myapp_db]> INSERT INTO employees (name, role, department) VALUES ('Alice', 'Engineer', 'Backend'), ('Bob', 'Designer', 'Frontend'), ('Carol', 'DevOps', 'Infrastructure');
MariaDB [myapp_db]> SELECT * FROM employees;
MariaDB [myapp_db]> EXIT;
MariaDB [myapp_db]> CREATE TABLE employees ( id INT AUTO_INCREMENT PRIMARY KEY, name VARCHAR(100) NOT NULL, role VARCHAR(100), department VARCHAR(100)
);
MariaDB [myapp_db]> MariaDB [myapp_db]> INSERT INTO employees (name, role, department) VALUES ('Alice', 'Engineer', 'Backend'), ('Bob', 'Designer', 'Frontend'), ('Carol', 'DevOps', 'Infrastructure');
MariaDB [myapp_db]> SELECT * FROM employees;
MariaDB [myapp_db]> EXIT;
MariaDB [myapp_db]> CREATE TABLE employees ( id INT AUTO_INCREMENT PRIMARY KEY, name VARCHAR(100) NOT NULL, role VARCHAR(100), department VARCHAR(100)
);
MariaDB [myapp_db]> MariaDB [myapp_db]> INSERT INTO employees (name, role, department) VALUES ('Alice', 'Engineer', 'Backend'), ('Bob', 'Designer', 'Frontend'), ('Carol', 'DevOps', 'Infrastructure');
MariaDB [myapp_db]> SELECT * FROM employees;
MariaDB [myapp_db]> EXIT; - Use MariaDB as the database layer in a LAMP or LEMP stack
- Set up Galera Cluster for multi-master replication
- Automate backups with mariadb-dump