我正在尝试使用sqoop连接到MySQL服务器,但我收到了连接错误。我搜索了一下,并且知道我需要为我正在运行的用户提供远程访问权限:
GRANT all privileges on *.* TO 'ujjwal'@'1.2.3.4' identified by 'pass!word' with GRANT OPTION;
但我收到语法错误 -
You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'identified by pass!word' with GRANT OPTION' at line 1
你可以告诉我我在做什么错吗?提前谢谢。