- Sun Dec 08, 2019 1:18 pm #151
Before we get started you’ll need to login to your server via SSH. If you’re not certain how to do this, don’t worry we’ve got you covered as we have written a guide that will show you the ins and outs of Connecting to Your Server via SSH. Once connected you may move on to the rest of this article. MariaDB is now the preferred database management system for CentOS 7 and as such is very simple to install:
Code: Select allOnce you confirm the installation, that one line should take care of everything that is required to install MariaDB in CentOS 7. Once installed you’ll need to start MariaDB and ensure that it always starts at boot by issuing these commands:
# <span style="font-family: 'Open Sans';">yum install mariadb-server</span>
Code: Select allTo ensure that MariaDB started successfully it is advised to use the following command to check its status:
# <span style="font-family: 'Open Sans';">systemctl start mariadb # systemctl enable mariadb</span>
Code: Select allLast but not least you’ll need to execute the security script for MariaDB, which allows you to change the default MariaDB root user password.
# <span style="font-family: 'Open Sans';">systemctl status mariadb</span>
Code: Select allFollow the on screen instructions to change the password and finalize your MariaDB installation. If everything completed without any errors, MariaDB should now be fully functional on your server!
# <span style="font-family: 'Open Sans';">mysql_secure_installation</span>