MariaDB Install
MariaDB is the open-source fork of Oracle owned MySQL.
|
-
Install
MariaDB:sudo dnf install mariadb-server mariadb -y -
Start
MariaDB:sudo systemctl start mariadb -
Enable
MariaDBto start when the system starts:sudo systemctl enable mariadb -
Check
MariaDBstatus:sudo systemctl status mariadb -
Configure
MariaDB:sudo mysql_secure_installation NOTE: RUNNING ALL PARTS OF THIS SCRIPT IS RECOMMENDED FOR ALL MariaDB SERVERS IN PRODUCTION USE! PLEASE READ EACH STEP CAREFULLY! -
Test
MariaDB:mysql -u root -p Enter password: Welcome to the MariaDB monitor. Commands end with ; or \g. Your MariaDB connection id is 13 Server version: 10.3.28-MariaDB MariaDB Server Copyright (c) 2000, 2018, Oracle, MariaDB Corporation Ab and others. Type 'help;' or '\h' for help. Type '\c' to clear the current input statement. MariaDB [(none)]> exit Bye -
To access
MariaDBoutside of the local host, do the following:This is not required for
NextCloudfunctionality and is an optional configuration-
Update firewall to allow inbound traffic on port 3306:
sudo firewall-cmd --permanent --zone=public --add-port=3306/tcp sudo systemctl reload firewalld -
To allow the root account to log in from any host on the local network, excute the following:
GRANT ALL PRIVILEGES ON *.* TO 'root'@'192.168.1.%' IDENTIFIED BY '<root password>' WITH GRANT OPTION; (1)1 Supply the password for the system root account.
-