edit user mysql 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';
ALTER USER 'root'@'localhost' IDENTIFIED BY 'New-Password';
ALTER USER 'root'@'localhost' IDENTIFIED BY 'newPassword';