我不提供方言吗?
我正在尝试使用semelize创建数据库。我一直遇到这个错误。
错误:需要明确提供方言,从v4.0.0开始 在新的续集
中
这是我的“新续集”构造函数(或您称之为的任何内容):
var sequelize = new Sequelize("seqGenZoo_db", "root", {
host: "localhost",
dialect: "mysql",
pool: {
max: 5,
min: 0,
idle: 10000
}
});
看起来是方言。有什么交易?我已经安装了MySQL和MySQL2 NMP软件包,如果这意味着什么。
I'm trying to create a database with Sequelize. I keep getting this error.
Error: Dialect needs to be explicitly supplied as of v4.0.0
at new Sequelize
Here's my "new Sequelize" constructor (or whatever you call it):
var sequelize = new Sequelize("seqGenZoo_db", "root", {
host: "localhost",
dialect: "mysql",
pool: {
max: 5,
min: 0,
idle: 10000
}
});
Looks like the dialect is provided. What's the deal? I've installed the mysql and mysql2 nmp packages, if that means anything.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
错误1045确实意味着您的用户/密码对不正确。根据官方的说法,指示
数据库
,用户名
,密码
和选项
参数:Error 1045 indeed means you have incorrect user/password pair. And according to the official documentation you should indicate
database
,username
,password
andoptions
parameters: