The easiest way to install mysql below centos7

1, the configuration

[root@slaver4 ~]# wget -i -c http://dev.mysql.com/get/mysql57-community-release-el7-10.noarch.rpm

Error does not matter, look good on the line download

2, install it

 

[@ slaver4 the root Package] # yum the install mysql57 -Y-Community-Release-el7- 10 .noarch.rp 

. 3, the database means (taking some time, see Network)
-Y-community- the install MySQL yum Server


. 4, starting database
systemctl Start mysqld

. 5, find randomly generated passwords
grep " password " / var / log / mysqld.log


. 6, modified root password
mysql> ALTER USER 'root'@'localhost' IDENTIFIED BY '123456';
 

 

Guess you like

Origin www.cnblogs.com/xingyunfashi/p/12322051.html