MySQL Knowledge

MySQL


Installation

Using the MySQL Yum Repository

1
2
3
4
5
6
7
8
9
shell> sudo yum localinstall mysql57-community-release-el7-{version-number}.noarch.rpm
shell> yum repolist enabled | grep "mysql.*-community.*"
shell> yum repolist all | grep mysql
shell> sudo yum-config-manager --disable mysql57-community
shell> sudo yum-config-manager --enable mysql56-community
shell> yum repolist enabled | grep mysql
shell> sudo yum install mysql-community-server
shell> sudo service mysqld start
shell> sudo service mysqld status

Securing the MySQL Installation

1
shell> mysql_secure_installation