How to Install MariaDB on Linux Stand Alone
1- Check the Linux Version:
Check the Linux version by using below command before we download MariaDB.
# cat /etc/redhat-release
2- Create or Edit MariaDB.repo :
Create MariaDB.repo file in /etc/yum.repos.d/
# vi /etc/yum.repos.d/MariaDB.repo
[mariadb]
name = MariaDB
baseurl = http://yum.mariadb.org/10.2/centos7-amd64
gpgkey=https://yum.mariadb.org/RPM-GPG-KEY-MariaDB
gpgcheck=1
Save the file by :wq!name = MariaDB
baseurl = http://yum.mariadb.org/10.2/centos7-amd64
gpgkey=https://yum.mariadb.org/RPM-GPG-KEY-MariaDB
gpgcheck=1
3- Install MariaDB Server and MariaDB Client
# sudo yum install MariaDB-server MariaDB-client
4- Start MariaDB Service
# sudo systemctl start mysql
5- Run Secure Installation
Run the secure installation by using below statment to configure root password and other features.
# sudo mysql_secure_installation
6- Log in to MariaDB by using Root
# mysql -uroot -p
Once you provide the root password, you will be connected to mysql and you can start working on databases.
No comments:
Post a Comment
Note: Only a member of this blog may post a comment.