alter mysql.user add password 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';