Skip to main content

MariaDB Installation Guide

This guide provides all the key information and getting-started instructions after a successful MariaDB installation via DeploySage-CLI.

Getting Started

Your MariaDB server is now running. The installer has performed a secure installation and set a default password for the root user.

It is strongly recommended that you change this password immediately.

# Log in to MariaDB as the root user
mysql -u root -p'AWS@1024'

# Inside the MariaDB shell, change the password
ALTER USER 'root'@'localhost' IDENTIFIED BY 'YOUR_NEW_STRONG_PASSWORD';
FLUSH PRIVILEGES;
EXIT;

Service Management

Manage the MariaDB service using standard systemctl commands.

# Start the MariaDB service
sudo systemctl start mariadb

# Stop the service
sudo systemctl stop mariadb

# Check the service status
sudo systemctl status mariadb

Key Directories and Files

ItemValue
Installation Directory/usr/local/mysql
Data Directory/usr/local/mysqldata
Configuration File/etc/my.cnf
Socket File/usr/local/mysqldata/mysql.sock