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 updateorsudo 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-installationscript 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 -pand 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