I think that the issue is the line you are running, it might have wrong quotes and you use ‘root’ for password again. But it should be:
GRANT ALL PRIVILEGES ON *.* TO ‘root’@‘%’ IDENTIFIED BY ‘xxxxxxx’ WITH GRANT OPTION;
Where ‘xxxxxxx’ is actually the password you have set in the previous steps.
Can you try that?