MariaDB
# Install MariaDB
Upgrade system
sudo dnf upgrade --refresh -yInstall MariaDB service
sudo dnf install -y mariadb-serverCheck MariaDB version
mariadb --versionEnable and start MariaDB service
sudo systemctl enable --now mariadbConfig secure MariaDB
sudo mariadb-secure-installationLogin MySQL
sudo mysql -u root -pCreate database
CREATE DATABASE {db_name};Create user MySQL
CREATE USER '{username}'@'localhost' IDENTIFIED BY '{password}';Grand permission user with database
GRANT ALL PRIVILEGES ON {db_name}.* TO '{username}'@'localhost';Create user and add permission all databases
GRANT ALL PRIVILEGES ON *.* TO '{username}'@'localhost' IDENTIFIED BY '{password}' WITH GRANT OPTION;Apply privileges
FLUSH PRIVILEGES;