check username password mysql database code example Example: mysql see users and passwords SELECT User, Host, Password, password_expired FROM mysql.user;