A hook (`orm`) failed to load!
启动sails时报错:
1 2 | error: A hook (`orm`) failed to load! error: Could not tear down the ORM hook. Error details: Error: Consistency violation: Attempting to tear down a datastore (`default`) which is not currently registered with this adapter. This is usually due to a race condition in userland code (e.g. attempting to tear down the same ORM instance more than once), or it could be due to a bug in this adapter. (If you get stumped, reach out at http: //sailsjs .com /support .) |
原因:数据库服务关闭了,sails连接不上数据库。
解决:重启数据库服务“ windows + R "-->" services.msc "找到数据库服务” 启动 “。
公众号:一介码夫
欢迎关注公众号,获取更多资讯
【推荐】编程新体验,更懂你的AI,立即体验豆包MarsCode编程助手
【推荐】凌霞软件回馈社区,博客园 & 1Panel & Halo 联合会员上线
【推荐】抖音旗下AI助手豆包,你的智能百科全书,全免费不限次数
【推荐】轻量又高性能的 SSH 工具 IShell:AI 加持,快人一步