Change hostname – CentOS 7
Changing the hostname on CentOS 7 is pretty straight forward, issue the following at shell…
MariaDB one of the most popular and an enhanced drop-in replacements for MySQL. It was created and is maintained by the original developers of MySQL.
MariaDB is very interesting because if is fast, scalable and more robust than MySQL.
To install MariaDB 10.1 on your CentOS 7.2 box, head over to the repo configurator and get the correct repo for CentOS 7.2:
Add the resulting config to a new file MariaDB.repo at /etc/yum.repos.d:
Install the server and the client:
To start the server, issue the following:
To start MariaDB at startup:
With a fresh installation there is no password set to the root account, you can simply login to the server by issuing the following at shell:
To secure the server by setting a password issue the following at shell:
Follow the steps and it’ll guide you through setting a password for the root user.
That’s it, you’re done!