Tuesday, June 6, 2017

Linux: Install MariaDB on Fedora 25 Server

1. Update the System.

dnf update



2. Install MariaDB. 

dnf install mariadb mariadb-server



press y to install gpg key





3. Initial Setup of MariaDB.

systemctl start mariadb


mysql_secure_installation



press y to set root password.



press y to remove anonymous user.


press n to disallow root login remotely. 



press Y to remove test database and access to it.


press Y to reload privilege tables now.


systemctl enable mariadb


this code will enable MariaDB at startup
mysql -u root -p

Test MariaDB.

No comments:

Post a Comment