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