Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我做了:
var MariaSQLClient = require('mariasql'); var maria_connection = new MariaSQLClient({ host: '127.0.0.1', user: 'root', password: 'root', db: 'db1' })
但是当我检查它是否已连接时,使用:
maria_connection.connected
错误的
它总是返回 false