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

来源:3-3 新增期刊内容02-模型操作

雨花凉

2021-05-16 16:59


http://img2.mukewang.com/60a0deb40001cb9127080686.jpghttp://img2.mukewang.com/60a0de8d00016c4520630525.jpg

终端报错 不知道是咋回事

写回答 关注

3回答

  • 沁尘
    2021-05-16 21:00:32
    已采纳

    看第四行

    雨花凉

    麻烦您再指点下

    2021-05-16 21:32:58

    共 1 条回复 >

  • 雨花凉
    2021-05-17 16:52:44

    http://img3.mukewang.com/60a22e890001503426151175.jpg终于发下是这里写错了。


    雨花凉

    又是错别字 发现

    2021-05-17 16:53:47

    共 1 条回复 >

  • 雨花凉
    2021-05-16 21:31:44

    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)

    老师,哪一句呢

    沁尘

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

    2021-05-17 10:44:48

    共 1 条回复 >

0到1快速构建自己的后台管理系统

开源框架LIN-CMS+NodeJS+Vue 快速构建UI好看+功能便捷的后台管理系统

21448 学习 · 145 问题

查看课程

相似问题