GRANT SELECT, INSERT ON mydatabase.* TO 'root'@'ip_address';
flush priveleges;

# Replace 'ip_address' with the 'IP ADDRESS' shown in error