TribeDB icon indicating copy to clipboard operation
TribeDB copied to clipboard

0.2.8版本接入方式异常

Open tanglifeng opened this issue 3 years ago • 0 comments

tribedb 最新版本0.2.8 找不到tribe.config配置文件

let tribe = require('tribedb'), tribe_config = tribe.config;

tribe_config.db('vr_mmo_game', { host: '192.168.248.234', port: 3306, user: 'root', password: '123456' });

错误信息: tribe_config.db('vr_mmo_game', { ^

TypeError: Cannot read property 'db' of undefined at Object. (G:\demo\tribedb_demo\index.js:8:14) at Module._compile (internal/modules/cjs/loader.js:999:30) at Object.Module._extensions..js (internal/modules/cjs/loader.js:1027:10) at Module.load (internal/modules/cjs/loader.js:863:32) at Function.Module._load (internal/modules/cjs/loader.js:708:14) at Function.executeUserEntryPoint [as runMain] (internal/modules/run_main.js:60:12) at internal/main/run_main_module.js:17:47

tanglifeng avatar Jan 04 '22 07:01 tanglifeng