How to grant access to remote PC in MySQL?

The problem we were facing was that a colleague was trying to access to a MySQL database in my computer, we were both in the same network, he was being asked for password, so for that, here is how to grant root access to another IP to your local database. This worked for us.

GRANT ALL ON *.* to root@'10.101.60.142' IDENTIFIED BY 'password';
FLUSH PRIVILEGES;

Notice that the IP and password are in italics, meaning that these are the variables you should change.