MariaDB Installation

MariaDB Installation and Usage on Linux (Debian/Ubuntu)

1 min read
MariaDB Installation

MariaDB Installation and Usage on Linux (Debian/Ubuntu)

This document explains how to install, secure, and use MariaDB on Linux systems

  1. Install MariaDB

sudo apt update && sudo apt upgrade -y
sudo apt install mariadb-server
  1. Start & Enable Service

sudo systemctl start mariadb sudo systemctl enable mariadb
  1. Secure MariaDB

sudo mysql secure_installation
  • Recommended answers: Yes to all security prompts.
  1. Login to MariaDB

sudo mysql
or
mysql -u root -p
  1. Check MariaDB Port

SHOW VARIABLES LIKE 'port';
Default: 3306
  1. Create Database & User

CREATE DATABASE mydb;

CREATE USER 'myuser'@'localhost' IDENTIFIED BY 'password';

GRANT ALL PRIVILEGES ON mydb.\* TO 'myuser'@'localhost'; FLUSH PRIVILEGES;
  1. Basic Commands

SHOW DATABASES;
USE mydb;
SHOW TABLES;
  1. Configuration Files

/etc/mysql/mariadb.conf.d/50-server.cnf
  1. Restart MariaDB

sudo systemctl restart mariadb

Continue Reading

Explore more articles you might find interesting

lms

Configuring Email in Koha LMS: SMTP Setup, Cron Jobs & Production-Ready Delivery

A production-focused, step-by-step guide to configuring email in Koha LMS using the built-in SMTP module and Linux terminal tools. Covers enabling email at the instance level, processing the message queue with cron jobs, and ensuring reliable delivery of patron notices, circulation alerts, and system notifications in a live Koha environment.

Read Article
backend

Django Admin Actions – Developer Documentation

A **production-oriented, developer-focused guide** to using **Django Admin Actions** effectively. Covers bulk operations, confirmation workflows, permission checks, service-layer delegation, and best practices for scalable Django applications.

Read Article
lms

Koha LMS Installation Guide on Linux (Debian/Ubuntu)

This document provides a **clear, step-by-step, production-oriented guide** to install **Koha Integrated Library Management System (LMS)** on a Linux server, specifically **Debian or Ubuntu**. Koha officially recommends Debian-based systems and this guide follows best practices used in real-world library deployments.

Read Article

Enjoyed this article?

Get notified when I publish new content. No spam, just quality articles delivered to your inbox.