Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/node.js/37.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Node.js 节点-错误:不支持该方言。支持的方言:mssql、mysql、postgres和sqlite_Node.js_Mariadb_Sequelize.js - Fatal编程技术网

Node.js 节点-错误:不支持该方言。支持的方言:mssql、mysql、postgres和sqlite

Node.js 节点-错误:不支持该方言。支持的方言:mssql、mysql、postgres和sqlite,node.js,mariadb,sequelize.js,Node.js,Mariadb,Sequelize.js,我有一个节点服务器,数据库是mariadb。当我尝试连接到DB时,出现错误 Error('The dialect ' + this.getDialect() + ' is not supported. Supported dialects: mssql, mysql, postgres, and sqlite.'); ^ Error: The dialect mariadb is not supported. Supported dialects: mssql, mysql, po

我有一个节点服务器,数据库是mariadb。当我尝试连接到DB时,出现错误

Error('The dialect ' + this.getDialect() + ' is not supported. 
Supported dialects: mssql, mysql, postgres, and sqlite.');
    ^

Error: The dialect mariadb is not supported. Supported dialects: 
mssql, mysql, postgres, and sqlite.
at new Sequelize (/node_modules/sequelize/lib/sequelize.js:236:15)
我有模块 mariadb:^2.1.1 mariasql:^0.2.6 续集:^4.37.6 mysql2:^1.7.0

如果有人知道的话,请告诉我


提前感谢

我通过将sequelize版本更新为5来解决问题-一直滚动到底部。