`Identified By Password` in Create Database MySQL

早过忘川 提交于 2019-12-24 09:29:13

问题


I reviewed the logs records for create database-user and it caught my attention: '*94060046C2F3321FA041154DF7FE002629402435'

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

What is this password?


回答1:


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

So '*94060046C2F3321FA041154DF7FE002629402435'; is the obfuscated value of the password

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



来源:https://stackoverflow.com/questions/39626626/identified-by-password-in-create-database-mysql

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!