Issues after workspace restart

nodejs
phpmyadmin
mysql

#1

After restarting workspace, my phpmyadmin username and password does not work. And the nodejs app that I am connecting to mysql, throwing errors. Please help me on this issue.

This is the error;

{ Error: connect ECONNREFUSED 127.0.0.1:3306
at Object.exports._errnoException (util.js:1020:11)
at exports._exceptionWithHostPort (util.js:1043:20)
at TCPConnectWrap.afterConnect [as oncomplete] (net.js:1086:14)


#2

Is MySQL definitely running on your workspace? What does ps aux | grep mysql show?

Also, is port 3306 on 127.0.0.1 (localhost) being listened to? What does sudo netstat -tulpn | grep 3306 show?