I forgot to update this, its now working by the way.
I found out that the network in my workplace restricts port 3306 for every device. So i asked them to allow port 3306 for me.
Troubleshooting this error :
Disable the firewall in your local machine(this is to check if it is really on your machine’s firewall).
If that solves the problem, enable your firewall and allow that port in your firewall inbound and outbound connection.
If its not, try to connect to a network other than your current. This checks if the issue is in your network. If this is the case, ask your network administrator to allow that port (in my case 3306).
Thank you @RobertG