创建数据库中的“通过密码识别”MySQL

`Identified By Password` in Create Database MySQL

我查看了创建数据库用户的日志记录,它引起了我的注意:'*94060046C2F3321FA041154DF7FE002629402435'

GRANT USAGE ON *.* TO 'username_name'@'localhost' IDENTIFIED BY PASSWORD '*94060046C2F3321FA041154DF7FE002629402435';

这个密码是什么?

MySQL hashes passwords stored in the mysql.user table to obfuscate them. For most statements described here, MySQL automatically hashes the password specified.

所以 '*94060046C2F3321FA041154DF7FE002629402435';是密码的混淆值

http://dev.mysql.com/doc/refman/5.6/en/assigning-passwords.html