Ignoring invalid timezone passed to Connection: Asia/Shanghai. This is currently a warning, but in future versions of MySQL2, an error will be thrown if you pass an invalid configuration option to a Connection
Node 这个错误提示,指下面的 timezone没有用了?!
config.sequelize = {
dialect: 'mysql', // support: mysql, mariadb, postgres, mssql
timezone: 'Asia/Shanghai',
host: 'localhost',
port: 3306,
username: 'root',
password: 'mypassword',
database: 'myData',
pool: {
min: 5,
max: 25,
},
};
删除掉timezone配置,没了这个错误提示。
config.sequelize = {
dialect: 'mysql', // support: mysql, mariadb, postgres, mssql
host: 'localhost',
port: 3306,
username: 'root',
password: 'mypassword',
database: 'myData',
pool: {
min: 5,
max: 25,
},
};
先这样,眼不见,心不烦。
本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系:hwhale#tublm.com(使用前将#替换为@)