node.js - Message: Unexpected string , while migrating model to mysql db in strongloop -
i trying migrate model class mysql db strongloop tool in node.js loopback framework.
when click migrate button showing error
oops! wrong unexpected string message: unexpected string request: /workspace/api/datasourcedefinitions/server.mysql/autoupdate status: 500
my model class example
{ "name": "media", "base": "persistedmodel", "properties": { "path": { "type": "string" }, "filename": { "type": "string" }, "createdat": { "type": "date", "required": true }, "updatedat": { "type": "date", "required": true } }, "validations": [], "relations": {}, "acls": [], "methods": {} }
db source file
{ "db": { "name": "db", "connector": "memory" }, "mysql": { "host": "localhost", "port": 3306, "url": "mysql://root:12345678@localhost/voice", "database": "voice", "username": "root", "password": "12345678", "name": "mysql", "connector": "mysql", "user": "root" } }
please resolve issue.
Comments
Post a Comment