how to pass password mysql command line code example
Example 1: change mysql password from command line
ALTER USER 'root'@'localhost' IDENTIFIED BY 'New-Password';
Example 2: how to pass password mysql command line
mysql -u user -ppassword
password should not have any space with -p
Example 3: How to pass password to mysql command line
mysqladmin processlist -u root -pYOURPASSWORDHERE
No space between your password and the -p