If you do not already have a supported version of mysql installed on your Centos 7 or Redhat Enterprise Linux 7 system, follow these instructions to install mysql. If you are using Centos 6 or Redhat Enterprise Linux 6 do not follow these instructions. Use the instructions at this link instead.
Step 1: Login as root
Log into the system as the root user.
Step 2: Install software
As the root user, run this command:
yum install mariadb-server
Step 3: Set the mysql server to start on boot
As the root user, run this command:
systemctl enable mariadb
Step 4: start the mysqld service
As the root user, run this command:
systemctl start mariadb
Step 5: Harden the mysqld server
As the root user, run this command:
mysql_secure_installation
Note: This will ask you to change the MySQL root password, remove anonymous user accounts, disable root logins outside of localhost, and remove test databases. It is recommended that you answer yes to these options.
Comments
0 comments
Please sign in to leave a comment.