mysql change root password bash 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';