It's hard to write a title

  Time flies for another year, suddenly I want to do something on a whim, restart my server (node ​​environment under linux), run the previous training project to see if the environment is normal, and then wow, the project is running, but report this Wrong: connect ECONNREFUSED 127.0.0.1:3306; There is a problem with the mysql database of Ya, I asked myself three times: Is the database installed? Is the port written wrong? Is the service normal? Then the first two are definitely and definitely ruled out.

  Well, check the status, what is the command to query the status of mysql in a daze, just knock on it, if it is wrong, go to Baidu, enter service mysql status, and sure enough, the status is failed, um, just start it Well, enter service mysql start, and then enter service mysql status query to display MySQL running. Run the project again, um, no error is reported, the environment is normal, and things can be done. It's a bit strange. It has been restarted before, and mysql is normal. This time it is down.

Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=325391112&siteId=291194637