Firewall might be blocking your connection, or MySQL it's not running on your server machine.
Check if you have started your server, or if your server is set to listen to the port you're trying to connect and is waiting to accept connections and check if the firewall isn't blocking your connection.
Don't give up yet. Our experts can help. Paste your full stack trace to get a solution.