Question : How do I connect to my remote server using pythonlib mysqldb?

If I ssh into that remote server, I can run a script that uses mysqldb and which successfully interrogates the database.

I cannot do it from my local workstation though. I imagine that ssh is the answer. Note that from my local workstation, I am able to connect to the mysqldb using navicat software and with enabling use of ssh.

Please help me to accomplish this. Thanks in advance,

Jason

Answer : How do I connect to my remote server using pythonlib mysqldb?

If you don't have an iptables file, then your firewall is almost certainly somewhere else. In fact on your system, iptables is not being used at all, if you don't have that file.
Likely the firewall is in some router or cable modem between your local system and the server. You can find out what systems a network connection threads through using the traceroute command. From your local system, try:

traceroute server_system

See sample output below. The first system you see is adjacent, and so on. Some systems refuse to participate in the search (they don't return expiring ICMP packets ... or something) and you get those "*  *  *" lines. If you know your own network topography you should be able to guess what systems they are if you get them ("*  *  *" lines).
As to which system in the chain is the firewall - traceroute won't tell you that. You'll just have to check the likely candidates.
1:
2:
3:
4:
5:
6:
7:
8:
9:
10:
11:
12:
13:
14:
15:
07:24:12$ traceroute google.com.au
traceroute: Warning: google.com.au has multiple addresses; using 64.233.167.104
traceroute to google.com.au (64.233.167.104), 30 hops max, 38 byte packets
 1  dullstar.local.net (10.255.255.3)  0.194 ms  0.128 ms  0.131 ms
 2  10.60.0.1 (10.60.0.1)  8.556 ms  6.480 ms  8.015 ms
 3  meb2-ge2-2.gw.optusnet.com.au (198.142.160.137)  16.080 ms  7.882 ms  7.378 ms
 4  sun2-ge1-0-901.gw.optusnet.com.au (198.142.160.94)  6.861 ms  7.315 ms  8.085 ms
 5  sun3-ge1-1.gw.optusnet.com.au (211.31.129.106)  8.053 ms  6.511 ms  8.059 ms
 6  203.208.191.73 (203.208.191.73)  180.074 ms  179.713 ms  193.201 ms
 7  * * *
 8  209.85.130.2 (209.85.130.2)  190.356 ms 209.85.130.8 (209.85.130.8)  182.301 ms 209.85.130.6 (209.85.130.6)  180.581 ms
 9  216.239.46.45 (216.239.46.45)  233.245 ms  231.982 ms  232.101 ms
10  64.233.174.83 (64.233.174.83)  234.759 ms 72.14.238.90 (72.14.238.90)  234.333 ms  233.341 ms
11  66.249.94.133 (66.249.94.133)  232.684 ms 72.14.232.70 (72.14.232.70)  234.085 ms 64.233.175.42 (64.233.175.42)  238.865 ms
12  py-in-f104.google.com (64.233.167.104)  234.545 ms  232.732 ms  232.180 ms
Open in New Window Select All
Random Solutions  
 
programming4us programming4us