wget http://dev.mysql.com/get/mysql57-community-release-fc23-7-noarch.rpm
dnf repolist enable | grep "mysql.*-community.*"
dnf install mysql-community-server
service mysql start
service mysql status
cat /var/log/mysql.log | grep "A temporary password"
mysql –uroot –p password
首先提示输入上一步搜索到的临时密码
然后输入新密码
登陆mysql
mysql –u username –p