The error occurs at the moment of establishing a connection, which is refused.
Some possibilities:
a) UNIX environments are case sensitive, Windows isn't, make sure you consistently use the same case.
b) you are not allowed to access the port because of some firewalll setting
c) mysql refuses a connection because for some reason the username is not allowed access, which would be strange for "root" but there you go.
Don't think it's actual SQL syntax, more a case of not getting through.