标签: mariadb mariasql
我做了:
var MariaSQLClient = require('mariasql'); var maria_connection = new MariaSQLClient({ host: '127.0.0.1', user: 'root', password: 'root', db: 'db1' })
但当我使用以下方式检查是否连接时:
maria_connection.connected
假
它始终返回false