To change your MySQL root password, first you need to connect to the sql server via terminal
mysql -u root -p
In my case, my root password is null/empty. So I need to create new mysql root password.
So, after you login to the mysql, enter this command:
update user set password=PASSWORD("") where User='root';