Im new to sql and worklight. Im following SQL-Adapter tutorial from IBM Worklight, and import the sample code to worklight studio.
After deployed adapter, I choose Run as -> Call Mobilefirst Adapter.
This is my response for procedure "getAccountTransactions1":
{ "isSuccessful": true, "resultSet": [ ]}
This is my response for procedure "getAccountTransactions2":
{ "errors": [ "Runtime: Failed to retrieve data with procedure : getAccountTransactions" ], "info": [ ], "isSuccessful": false, "warnings": [ ]}
And this is the errors console for procedure "getAccountTransactions2"
FWLSE0101E: Caused by: [project Adapters]java.sql.SQLException: The user specified as a definer ('mobilefirst'@'localhost') does not existjava.lang.RuntimeException: Failed to retrieve data with procedure : getAccountTransactions
I think I have something wrong with sql user 'mobilefirst'@'localhost', but i dont know why, cause I use root user in SQLAdapter.xml.
And how to set permission for "Worklight" sql user if I use it as the default of this sample code?