终端报错 不知道是咋回事
看第四行
终于发下是这里写错了。
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)
老师,哪一句呢