how to set user as root in mysql ubuntu code example Example: alter user root mysql ALTER USER 'root'@'localhost' IDENTIFIED BY 'newPassword';