Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Where mysql stores the password of users [closed]

When we setup a MySQL database system, system automatically create a MySQL databse in which there are multiple tables like db,event,func,host,servers,slow_log,user_info etc. In user_info table I can get the list of users and their details by executing query like select * from user_info; except password.

But in which table MySQL store the password of every users?
like image 313
ursitesion Avatar asked Dec 12 '25 03:12

ursitesion


2 Answers

MySQL passwords for users are stored within MySQL itself; they are stored in the mysql.user table. The passwords are hashed by default using the PASSWORD() function.

Source

like image 123
Vivek Sadh Avatar answered Dec 13 '25 17:12

Vivek Sadh


in the mysql db, user table

SELECT
    User,
    Password
FROM mysql.user;
like image 30
silly Avatar answered Dec 13 '25 15:12

silly



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!