【发布时间】:2015-04-12 17:40:18
【问题描述】:
我是 sql 和 worklight 的新手。我关注来自 IBM Worklight 的 SQL-Adapter tutorial,并将示例代码导入 Worklight Studio。
部署适配器后,我选择 Run as -> Call Mobilefirst Adapter。
这是我对“getAccountTransactions1”程序的回复:
{ "isSuccessful": true, "resultSet": [ ]}
这是我对“getAccountTransactions2”过程的回应:
{ "errors": [ "Runtime: Failed to retrieve data with procedure : getAccountTransactions" ], "info": [ ], "isSuccessful": false, "warnings": [ ]}
这是过程“getAccountTransactions2”的错误控制台
FWLSE0101E: 原因:[project Adapters]java.sql.SQLException: 指定为定义者 ('mobilefirst'@'localhost') 的用户不存在java.lang.RuntimeException: 检索失败带有过程的数据:getAccountTransactions
我认为我的 sql 用户 'mobilefirst'@'localhost' 有问题,但我不知道为什么,因为我在 SQLAdapter.xml 中使用 root 用户。
如果我将它用作此示例代码的默认值,如何设置“Worklight”sql 用户的权限?
【问题讨论】:
-
检查我的答案,如果对你有帮助,别忘了选择它作为正确答案。
标签: sql ibm-mobilefirst worklight-adapters