mysql change user password for all hosts code example
Example 1: change mysql password from command line
ALTER USER 'root'@'localhost' IDENTIFIED BY 'New-Password';
Example 2: alter user root mysql
ALTER USER 'root'@'localhost' IDENTIFIED BY 'newPassword';