Closed sathish80j closed 2 years ago
Hey
yep so after running both docker commands, you need to wait 10 seconds before running node startup_script.js
. It takes 10 seconds for the mysql db to start running. Just double check that your mysql db is running before running node startup_script.js
i have the same problem and i wait for 10s but nothing
Most likely there is something wrong with way you are running the mysql server, try using docker-compose instead (https://github.com/snoopysecurity/dvws-node#docker-compose)
thanks bro, it works
'PROTOCOL_CONNECTION_LOST' error occured when creating mysql database for DVWS,pl help me to fix it,thankyou
┌──(kali㉿kali)-[~/dvws-node] └─$ node startup_script.js
[+] Creating MySQL database for DVWS.... /home/kali/dvws-node/startup_script.js:22 if (err) throw err; ^
Error: Connection lost: The server closed the connection. at Protocol.end (/home/kali/dvws-node/node_modules/mysql/lib/protocol/Protocol.js:112:13) at Socket. (/home/kali/dvws-node/node_modules/mysql/lib/Connection.js:94:28)
at Socket. (/home/kali/dvws-node/node_modules/mysql/lib/Connection.js:526:10)
at Socket.emit (events.js:326:22)
at endReadableNT (_stream_readable.js:1241:12)
at processTicksAndRejections (internal/process/task_queues.js:84:21)
fatal: true, code: 'PROTOCOL_CONNECTION_LOST' }