how to change password for mysql in ubuntu code example Example: change mysql password from command line ALTER USER 'root'@'localhost' IDENTIFIED BY 'New-Password';