MySQL 5.7的默认根密码是什么 [英] What is the default root pasword for MySQL 5.7
本文介绍了MySQL 5.7的默认根密码是什么的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
像其他旧版本的MySQL一样,使用根ID和空/无密码的全新安装后无法登录MySQL数据库
Cannot login to MySQL database after fresh install with root ID and empty/no password like other older MySQL versions do
推荐答案
在Linux上全新安装MySQL-community-server 5.7之后,您需要从/var/log/mysqld.log中找到临时密码进行登录作为根.
After you installed MySQL-community-server 5.7 from fresh on linux, you will need to find the temporary password from /var/log/mysqld.log to login as root.
-
grep 'temporary password' /var/log/mysqld.log
- 运行
mysql_secure_installation
更改新密码
grep 'temporary password' /var/log/mysqld.log
- Run
mysql_secure_installation
to change new password
ref: http://dev.mysql.com/doc /refman/5.7/en/linux-installation-yum-repo.html
这篇关于MySQL 5.7的默认根密码是什么的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文