Quote: |
This seems to be wrong, should they not both be on the same address (3306)? |
there is nothing wrong, actually. Only remote port makes sense for the outbound connections (originated from the client).
I'd recommend you run netstat on the server side and make sure a) it is bound to (listens on) 0.0.0.0 address, not 127.0.0.1. Otherwise only local clients may reach it. b) check if firewall rules allow you connect to the server.
Anyway, mysql and related problems would be raised in mysql forums.
You may want to read this doc I found for you
http://dev.mysql.com/doc/mysql/en/can-not-connect-to-server.html
BTW, "within the ide" is wrong statement in the topic
You mentioned you're calling mysql_connect() So it means you are trying to connect using PHP, not the IDE 