Intermittent connection errors
If you are using ubuntu, give a try by using the below steps:

    run the command nano /etc/mysql/my.cnf
    comment bind-address = 127.0.0.1 using the # symbol
    restart your mysql server once.