So , sometimes when we use mysql in the application , we can receive error while having mysql connection.
So the error "Unable to connect to any of the specified MySQL hosts" can come becauseof mysql services not working properly. So for fixing the issue we have to restart mysql services. You can follow these steps :
Step 2 - Find the MySQL80 service
Step 3 - Right click on it and then click on start