时间:2021-07-01 10:21:17 帮助过:27人阅读
wget http://dev.mysql.com/get/mysql57-community-release-fc23-7-noarch.rpm
rpm -ivh mysql57-community-release-fc23-7-noarch.rpm
验证仓库
yum repolist enable | grep "mysql.*-community.*"
安装
yum install mysql-community-server
启动mysql服务
service mysql start
查看mysql服务状态
service mysql status
获取临时密码
cat /var/log/mysql.log | grep "A temporary password"
修改密码
mysqladmin –uroot –p 'temp passwd' password 'new passwd'
登陆mysql
mysqladmin –user=XXX –password=XXX