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