작성
·
428
0
안녕하세요.
npm install 후 npm run dev시 DB연결에서 오류가 나는 것 같은데, SQL은 아예 몰라 질문드립니다.
아래는 해당 오류 전문입니다.
uploads 폴더가 없어 uploads 폴더를 생성합니다.
listening on port 3095
ConnectionError [SequelizeConnectionError]: Unknown database 'sleact'
at ConnectionManager.connect (C:\Users\94app\Desktop\STUDY\sleact\back\node_modules\sequelize\lib\dialects\mysql\connection-manager.js:126:17)
at processTicksAndRejections (node:internal/process/task_queues:96:5)
at async ConnectionManager._connect (C:\Users\94app\Desktop\STUDY\sleact\back\node_modules\sequelize\lib\dialects\abstract\connection-manager.js:318:24)
at async C:\Users\94app\Desktop\STUDY\sleact\back\node_modules\sequelize\lib\dialects\abstract\connection-manager.js:250:32
at async ConnectionManager.getConnection (C:\Users\94app\Desktop\STUDY\sleact\back\node_modules\sequelize\lib\dialects\abstract\connection-manager.js:280:7)
at async C:\Users\94app\Desktop\STUDY\sleact\back\node_modules\sequelize\lib\sequelize.js:613:26
at async MySQLQueryInterface.createTable (C:\Users\94app\Desktop\STUDY\sleact\back\node_modules\sequelize\lib\dialects\abstract\query-interface.js:225:12)
at async Function.sync (C:\Users\94app\Desktop\STUDY\sleact\back\node_modules\sequelize\lib\model.js:1300:5)
at async Sequelize.sync (C:\Users\94app\Desktop\STUDY\sleact\back\node_modules\sequelize\lib\sequelize.js:793:35) {
parent: Error: Unknown database 'sleact'
at Packet.asError (C:\Users\94app\Desktop\STUDY\sleact\back\node_modules\mysql2\lib\packets\packet.js:712:17)
at ClientHandshake.execute (C:\Users\94app\Desktop\STUDY\sleact\back\node_modules\mysql2\lib\commands\command.js:28:26)
at Connection.handlePacket (C:\Users\94app\Desktop\STUDY\sleact\back\node_modules\mysql2\lib\connection.js:425:32)
at PacketParser.onPacket (C:\Users\94app\Desktop\STUDY\sleact\back\node_modules\mysql2\lib\connection.js:75:12)
at PacketParser.executeStart (C:\Users\94app\Desktop\STUDY\sleact\back\node_modules\mysql2\lib\packet_parser.js:75:16)
at Socket.<anonymous> (C:\Users\94app\Desktop\STUDY\sleact\back\node_modules\mysql2\lib\connection.js:82:25)
at Socket.emit (node:events:513:28)
sqlMessage: "Unknown database 'sleact'"
},
original: Error: Unknown database 'sleact'
at Packet.asError (C:\Users\94app\Desktop\STUDY\sleact\back\node_modules\mysql2\lib\packets\packet.js:712:17)
at ClientHandshake.execute (C:\Users\94app\Desktop\STUDY\sleact\back\node_modules\mysql2\lib\commands\command.js:28:26)
at Connection.handlePacket (C:\Users\94app\Desktop\STUDY\sleact\back\node_modules\mysql2\lib\connection.js:425:32)
at PacketParser.onPacket (C:\Users\94app\Desktop\STUDY\sleact\back\node_modules\mysql2\lib\connection.js:75:12)
at PacketParser.executeStart (C:\Users\94app\Desktop\STUDY\sleact\back\node_modules\mysql2\lib\packet_parser.js:75:16)
at Socket.<anonymous> (C:\Users\94app\Desktop\STUDY\sleact\back\node_modules\mysql2\lib\connection.js:82:25)
at Socket.emit (node:events:513:28)
at addChunk (node:internal/streams/readable:315:12)
at readableAddChunk (node:internal/streams/readable:289:9)
at Socket.Readable.push (node:internal/streams/readable:228:10) {
code: 'ER_BAD_DB_ERROR',
errno: 1049,
sqlState: '42000',
sqlMessage: "Unknown database 'sleact'"
}
감사합니다!