我已成功使用ssh登录到我的linux服务器。
我想连接到我的数据库
const OSQL = `INSERT INTO ${className} (${properties}) VALUES ${testValues}`;
console.log(OSQL);
db.query(OSQL);
我收到错误
psql myDatabase myuser
我试图追踪postgres是否正在运行
psql: could not connect to server: No such file or directory
Is the server running locally and accepting
connections on Unix domain socket
"/var/run/postgresql/.s.PGSQL.5432"?
如何连接到postgres?