سلام خسته نباشید علت این ارور چیه؟
تمامی کدها و اطلاعات دیتابیس با مدرس چک شده و کوچیکترین تفاوتی نداره
events.js:287
throw er; // Unhandled 'error' event
^
Error: Access denied for user ''@'localhost' (using password: NO)
at Packet.asError (C:\Users\cmos\node_modules\mysql2\lib\packets\packet.js:712:17)
at ClientHandshake.execute (C:\Users\cmos\node_modules\mysql2\lib\commands\command.js:28:26)
at Connection.handlePacket (C:\Users\cmos\node_modules\mysql2\lib\connection.js:417:32)
at PacketParser.onPacket (C:\Users\cmos\node_modules\mysql2\lib\connection.js:75:12)
at PacketParser.executeStart (C:\Users\cmos\node_modules\mysql2\lib\packet_parser.js:75:16)
at Socket.<anonymous> (C:\Users\cmos\node_modules\mysql2\lib\connection.js:82:25)
at Socket.emit (events.js:310:20)
at addChunk (_stream_readable.js:286:12)
at readableAddChunk (_stream_readable.js:268:9)
at Socket.Readable.push (_stream_readable.js:209:10)
Emitted 'error' event on Connection instance at:
at Connection._notifyError (C:\Users\cmos\node_modules\mysql2\lib\connection.js:221:12)
at ClientHandshake.<anonymous> (C:\Users\cmos\node_modules\mysql2\lib\connection.js:114:14)
at ClientHandshake.emit (events.js:322:22)
at ClientHandshake.execute (C:\Users\cmos\node_modules\mysql2\lib\commands\command.js:33:14)
at Connection.handlePacket (C:\Users\cmos\node_modules\mysql2\lib\connection.js:417:32)
[... lines matching original stack trace ...]
at addChunk (_stream_readable.js:286:12) {
code: 'ER_ACCESS_DENIED_ERROR',
errno: 1045,
sqlState: '28000',
sqlMessage: "Access denied for user ''@'localhost' (using password: NO)"
}