为了账号安全,请及时绑定邮箱和手机立即绑定

数据入库成功,但是这个报错是什么意思呢


http://img1.sycdn.imooc.com//60a0deb40001cb9127080686.jpghttp://img1.sycdn.imooc.com//60a0de8d00016c4520630525.jpg

终端报错 不知道是咋回事

正在回答

3 回答

看第四行

0 回复 有任何疑惑可以回复我~
#1

雨花凉 提问者

麻烦您再指点下
2021-05-16 回复 有任何疑惑可以回复我~

http://img1.sycdn.imooc.com//60a22e890001503426151175.jpg终于发下是这里写错了。


0 回复 有任何疑惑可以回复我~
#1

雨花凉 提问者

又是错别字 发现
2021-05-17 回复 有任何疑惑可以回复我~

Unhandled rejection SequelizeDatabaseError: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'class Sequelize {

  /**

   * Instantiate sequelize with name of database, userna' at line 1

    at Query.formatError (F:\lin-cms\lin-cms-koa\node_modules\sequelize\lib\dialects\mysql\query.js:244:16)

    at Query.handler [as onResult] (F:\lin-cms\lin-cms-koa\node_modules\sequelize\lib\dialects\mysql\query.js:51:23)

    at Query.execute (F:\lin-cms\lin-cms-koa\node_modules\mysql2\lib\commands\command.js:30:14)

    at Connection.handlePacket (F:\lin-cms\lin-cms-koa\node_modules\mysql2\lib\connection.js:425:32)

    at PacketParser.onPacket (F:\lin-cms\lin-cms-koa\node_modules\mysql2\lib\connection.js:75:12)

    at PacketParser.executeStart (F:\lin-cms\lin-cms-koa\node_modules\mysql2\lib\packet_parser.js:75:16)

    at Socket.<anonymous> (F:\lin-cms\lin-cms-koa\node_modules\mysql2\lib\connection.js:82:25)

    at Socket.emit (events.js:200:13)

    at addChunk (_stream_readable.js:294:12)

    at readableAddChunk (_stream_readable.js:275:11)

    at Socket.Readable.push (_stream_readable.js:210:10)

    at TCP.onStreamRead (internal/stream_base_commons.js:166:17)

老师,哪一句呢

0 回复 有任何疑惑可以回复我~
#1

沁尘

Instantiate sequelize with name of database, userna' at line 1
2021-05-17 回复 有任何疑惑可以回复我~

举报

0/150
提交
取消

数据入库成功,但是这个报错是什么意思呢

我要回答 关注问题
意见反馈 帮助中心 APP下载
官方微信