how to fix this?
With no other details I'm assuming this is less HeidiSQL problem and more MySQL configuration issue. Is the remote connection working in other MySQL clients? If you haven't tried that, my first suggestion is to check ALL the necessary steps for allowing remote MySQL connections, there are plenty tutorials and check-list on the internet.
Please login to leave a reply, or register at first.