In this article, we will outline the process of installing PHP 7.x MariaDB 10.1
, the latest stable release of the MariaDB 10.x series at the time of writing this article, on CentOS 7.
1 2 3 4 5 6 7 8 9 |
cat <<EOF | sudo tee -a /etc/yum.repos.d/MariaDB.repo # MariaDB 10.1 CentOS repository list # http://downloads.mariadb.org/mariadb/repositories/ [mariadb] name = MariaDB baseurl = http://yum.mariadb.org/10.1/centos7-amd64 gpgkey=https://yum.mariadb.org/RPM-GPG-KEY-MariaDB gpgcheck=1 EOF |
Note: The code for setting up newer releases of MariaDB 10.x may wary in the future. You should always check out the official MariaDB website to confirm the code to be used.
1 2 |
sudo yum install MariaDB-server MariaDB-client -y |
1 2 3 |
sudo systemctl start mariadb.service sudo systemctl enable mariadb.service |
1 2 |
sudo /usr/bin/mysql_secure_installation |
Answer questions as below, and ensure that you will use your own MariaDB root password:
Enter
buttonY
your-MariaDB-root-password
your-MariaDB-root-password
Y
Y
Y
Y
That’s it. From now on, you can use MariaDB to create and maintain MySQL databases in accordance with your requirements.
from:https://www.vultr.com/docs/how-to-install-mariadb-10-1-on-centos-7