MySQL connection refused

Hi, I am using Ubuntu 16.4 in my PC and after installing erpnext every thing goes well but after few days when I try to log in the error come “MySQL connection refused error 111” it happened many time and always I had to reinstall Ubuntu and erpnext. May I know why this happens always am I doing something wrong my PC have 4 GB RAM 500 hard drive.please help in this issue

Looks like your mysql conf file is getting modified.

You can google this error as it is from the MYSQL (MariaDB) side and the pc OS
Quick search shows me this solution.

Is the issue resolved or not ?