2

当我们建立一个 MySQL 数据库系统时,系统会自动创建一个 MySQL 数据库,其中有多个表,例如db,event,func,host,servers,slow_log,user_info etc. In table 我可以通过执行除密码之外user_info的查询来获取用户列表及其详细信息。select * from user_info;

But in which table MySQL store the password of every users?
4

2 回答 2

4

用户的 MySQL 密码存储在 MySQL 本身中;它们存储在 mysql.user 表中。默认情况下,使用该PASSWORD()函数对密码进行哈希处理。

来源

于 2014-02-18T06:48:19.150 回答
3

mysql数据库中,user

SELECT
    User,
    Password
FROM mysql.user;
于 2014-02-18T06:47:07.150 回答