0
group add
命令抛出一个错误MySQL的面料添加组报告用户(布)不具有相应的权限,当用户有权限
$ mysqlfabric group add group_id-1 127.0.0.1:70002
Fabric UUID: 5ca1ab1e-a007-feed-f00d-cab3fe13249e
Time-To-Live: 1
ServerError: User (fabric) does not have appropriate privileges (ALL PRIVILEGES) on server (127.0.0.1:70002, 33c14c02-4f 67-11e4-8df7-00ffb263a4ad).
为什么会出现这种情况?织物需要什么特权?
我在同一台机器上运行fabric和mysql服务器实例,状态存储使用localhost:70001
mysql实例。
用户布对MySQL实例权限localhost:70002
$ mysql -u root -P70002 -e "show grants for fabric"
+---------------------------------------------------------------+
| Grants for [email protected]% |
+---------------------------------------------------------------+
| GRANT ALL PRIVILEGES ON *.* TO 'fabric'@'%' WITH GRANT OPTION |
+---------------------------------------------------------------+
$ mysql -u root -P70002 -e "show grants for [email protected]"
+-----------------------------------------------------------------------+
| Grants for [email protected] |
+-----------------------------------------------------------------------+
| GRANT ALL PRIVILEGES ON *.* TO 'fabric'@'127.0.0.1' WITH GRANT OPTION |
| GRANT ALL PRIVILEGES ON `fabric`.* TO 'fabric'@'127.0.0.1' |
+-----------------------------------------------------------------------+
$ mysql -u root -P70002 -e "show grants for [email protected]"
+-----------------------------------------------------------------------+
| Grants for [email protected] |
+-----------------------------------------------------------------------+
| GRANT ALL PRIVILEGES ON *.* TO 'fabric'@'localhost' WITH GRANT OPTION |
| GRANT ALL PRIVILEGES ON `fabric`.* TO 'fabric'@'localhost' |
+-----------------------------------------------------------------------+
您是否发现此问题?我有同样的错误,没有其他的日志... – bsferreira 2016-03-14 00:53:44
@bferreira很久以前,我不记得,它是太难以建立一个可用的织物,所以我继续前进。 – wener 2016-03-14 05:19:19