为提高效率,提问时请提供以下信息,问题描述清晰可优先响应。
【DM版本】: dm8
【操作系统】:windows10
【CPU】: intel
【问题描述】*:
您看下是不是权限问题呢
我也遇到同样的问题了。请问你们是怎么解决的?
环境如下:
操作系统 win10
node:16.14
错判描述:
未处理异常 ENOENT: no such file or directory, open ''Error: ENOENT: no such file or directory, open ‘’
dmdb.createPool的时候抛出错误,后续语句能执行成功。
同样的代码在node版本12.18.3上没有问题:
下面是代码:
const pool= await dmdb.createPool({
poolAlias:“dmdb123”,
connectString: “dm://xxx:xxx@192.168.100.13:5236?autoCommit=true&loginEncrypt=false”,
poolMax: 10,
poolMin: 1
})
.then(p=>p)
.catch(error=>{
console.log(error);
throw new Error("createPool error: " + error.message);
});
const conn=await pool.getConnection()
.then(c=>c)
.catch(error=>{
console.log(error);
throw new Error("pool.getConnection error: " + error.message);
});
await conn.execute(“insert into A01(cc) values (‘33’);”);
await conn.close();
await pool.close();
有人回答吗?
不支持node16吗?
请问楼主解决了吗
切到node12版本没有此问题
尊敬的用户您好:
1:您将问题描述得越详细,越便于大家探讨。
2:尊敬的客户您好,非常感谢您对达梦数据库的支持。为了不耽误您的工作,如果您需要非常及时的技术支持,请您拨打400 991 6599转1号线,申请售前技术支持。