简体   繁体   中英

Weird sequelize error while trying to run my app from my server

在此处输入图片说明

This happens when I run node app.js from my server through putty.

I have MySql installed and running, and my code works fine from my local machine with no problems but I can't seem to get it to run on my server. Any ideas that may be causing this?

 createdAt:{
        type: db.Sequelize.DATE(3),
        unique: false,
        allowNull: false
    }

so basically what was throwing the error was the DATE(3).

I had MySQL 5.5 installed and dates to the millisecond aren't supported until 5.7

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM