[root@localhost mysql]# /usr/bin/mysql_secure_installation
Securing the MySQL server deployment.
Enter password for user root:
mysql初始化的时候让输入密码 但是安装的时候却没有密码提示 只能自己去找
[root@localhost mysql]# grep -ri temporary *
Binary file data/ibdata1 matches
Binary file data/ib_logfile0 matches
Binary file data/mysql/help_topic.ibd matches
Binary file data/mysql/help_keyword.ibd matches
Binary file data/mysql/proc.MYD matches
error/mysql-error.log:2017-12-09T17:12:20.686911Z 1 [Note] A temporary password is generated for root@localhost: 2hW&3542fUvx
过滤数据文件 在日志文件里面已经有了
error/mysql-error.log:2017-12-09T17:12:20.686911Z 1 [Note] A temporary password is generated for root@localhost: 2hW&3542fUvx