how to check username and password in mysql command line code example Example: how to check username in mysql command line SELECT User, Host FROM mysql.user;