get password mysql line command code example
Example 1: change mysql password from command line
ALTER USER 'root'@'localhost' IDENTIFIED BY 'New-Password';
Example 2: How to pass password to mysql command line
mysqladmin processlist -u root -pYOURPASSWORDHERE
No space between your password and the -p