Skip to main content

How to Install MariaDB Server on Linux (Ubuntu, Debian, Red Hat)

HardReset.InfoJanuary 10, 20267 min41 views
13 connections·12 entities in this video→

Finding Official MariaDB Installation Instructions

  • 🌐 Begin by visiting the official MariaDB website and searching for "MariaDB for Linux" to find the most accurate installation guides.
  • πŸ’‘ MariaDB is an open-source relational database management system compatible with MySQL.
  • 🎯 The guide focuses on instructions for Ubuntu, Debian, and Red Hat-based distributions.

System Update and Package Installation

  • πŸ’» For Ubuntu and Debian systems, update packages using sudo apt update.
  • βš™οΈ For Red Hat-based systems (like Fedora), use sudo yum update or sudo dnf update.
  • πŸ“¦ Install the necessary packages with sudo apt install mariadb-server mariadb-client galera-4 (or equivalent commands for other distributions).

Securing MariaDB Installation

  • πŸ”’ Run the sudo mariadb-secure-installation script to enhance security.
  • πŸ”‘ This script helps set a root password, remove anonymous users, and disallow remote root login.
  • ⚠️ You will be prompted to change the root password, remove anonymous users, disallow remote root login, remove test databases, and reload privilege tables.

Verifying MariaDB Service and Login

  • 🧐 Check the MariaDB service status using sudo systemctl status mariadb; it should be active and running.
  • ▢️ If the service is not running, start it with sudo systemctl start mariadb.
  • πŸ”‘ Connect to the database as root using mariadb -u root -p and enter the password you set.
  • πŸ“Š You can then verify the installation by listing databases with show databases.

Checking MariaDB Version

  • πŸ” To check the installed MariaDB version, use the command mariadb --version.
  • πŸ“ˆ The output will display the specific MariaDB version and distribution information.
Knowledge graph12 entities Β· 13 connections

How they connect

An interactive map of every person, idea, and reference from this conversation. Hover to trace connections, click to explore.

Hover Β· drag to explore
12 entities
Chapters3 moments

Key Moments

Transcript26 segments

Full Transcript

Topics12 themes

What’s Discussed

MariaDBLinuxDatabase InstallationUbuntuDebianRed HatSQLMySQL CompatibilityTerminal CommandsSystemctlDatabase SecurityRoot Password
Smart Objects12 Β· 13 links
ProductsΒ· 4
MediaΒ· 1
LocationsΒ· 4
ConceptsΒ· 2
PersonΒ· 1