我想連接到現有的mysql數據庫的環回我已安裝,即使我的數據庫信息在datasources.json中正確配置,我收到以下錯誤。環回Mysql連接問題
「錯誤」:{ 「的StatusCode」:401, 「名稱」: 「錯誤」, 「消息」: 「需要授權」, 「代碼」: 「AUTHORIZATION_REQUIRED」, 「堆」:「錯誤:需要授權\ n在/ home/gil/loopback/loopback-getting-started/node_modules /home/gil/loopback/loopback-getting-started/node_modules/loopback/lib/application.js:399:21\n /loopback/lib/model.js:349:7\n at /home/gil/loopback/loopback-getting-started/node_modules/loopback/common/models/acl.js:472:23\n at/home/gil /loopback/loopback-getting-started/node_modules/async/dist/async.js:3824:9\n at /home/gil/loopback/loopback-getting-started/node_modules/async/dist/async.js:460: iteratorCallback(/ home/gil/loopback/loopback-getting-started/node_modules/async/dist/async.js:1034:13)\ n在/ home/gil/loopback/loopback-getting /home/gil/loopback/loopback-getting-started/node_modules/async/dist/async.js:944:16\n -started/node_modules/async/dist/async.js:3821:13 \ n在應用(/home/gil/loopback/loopback-getting-started/node_modules/async/dist/async.js:21:25)\n at /home/gil/loopback/loopback-getting-started/node_modules/async/dist/async.js:56:12\n在/ home/gil/loopback/loopback-getting-started/node_modules/loopback/common/models /acl.js:454:17\n at /combinedTickCallback(internal/process/next_tick)/home/gil/loopback/loopback-getting-started/node_modules/loopback/common/models/role.js:273:21\n。 js:73:7)\ n at process._tickDomainCallback(internal/process/next_tick.js:128:9)「 }
任何人都可以指向正確的方向嗎?
看起來像密碼和/或配置問題。 – tadman
那麼我使用的相同用戶名和密碼,當我使用php連接時工作。配置問題非常廣泛,你可以更具體嗎? –