我有两个节点:node1
和node2
。我想从node1
访问node2
上安装的MySQL。
我到目前为止尝试在MySQL上使用grant all privileges on *.* to 'mysql'@'node2.openstacklocal' with grant option;
,但我仍然遇到以下错误:
===ERROR=== [mysql@node2 ~]$ mysql -p -h mgmt.openstacklocal -u mysql -P 3306 Enter password: ERROR 1045 (28000): Access denied for user 'mysql'@'node2.openstacklocal' (using password: YES)
答案 0 :(得分:-1)
我想我得到了解决方案
grant all on mysql.* to '<remoteuser>'@'node2.openstacklocal' identified by 'password';
注意 - 请注意,此命令缺少单词&#39; privileges&#39;