[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
過濾資料檔案 在日志檔案裡面已經有了
本文轉自 小小三郎1 51CTO部落格,原文連結:http://blog.51cto.com/wsxxsl/2049012,如需轉載請自行聯系原作者