I got the same error
but then I figured it out its because the Mysql server is not running at that time.
So to change the status of the server
- Go to Task Manager
- Go to Services
- then search for your Mysql server(eg:for my case its MYSQL56)
- then you will see under the status column it says its not running
- by right clicking and select start
Hope this will help.