LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Opening port 3306 (https://www.linuxquestions.org/questions/linux-newbie-8/opening-port-3306-a-749695/)

archey 08-23-2009 12:43 PM

Opening port 3306
 
Hello, It's me again :D.

So I'm got an error from HLStatsX:CE

Code:

DBI connect('archeyre_stats:3306','X',...) failed: Can't connect to MySQL server on '3306' (22) at /home/X/perl/HLstats.plib line 107

Can't connect to MySQL database 'X' on '3306'
Server error: Can't connect to MySQL server on '3306' (22)

Now I assume I need to open port 3306, how can I do so?

MS3FGX 08-23-2009 01:38 PM

Well...are you running an MySQL server in the first place?

archey 08-23-2009 01:45 PM

Quote:

Originally Posted by MS3FGX (Post 3654639)
Well...are you running an MySQL server in the first place?

uhh, yeah.

repo 08-23-2009 02:02 PM

And do you have a firewall?

archey 08-23-2009 02:08 PM

Quote:

Originally Posted by repo (Post 3654672)
And do you have a firewall?


No clue.

repo 08-23-2009 02:09 PM

login as root and type
Code:

iptables -L

archey 08-23-2009 02:38 PM

Quote:

Originally Posted by repo (Post 3654685)
login as root and type
Code:

iptables -L

okay, did that, now what?

MS3FGX 08-23-2009 02:39 PM

Post the output so we can see what it says...

archey 08-23-2009 03:08 PM

okay, here it is:

Code:

Chain INPUT (policy ACCEPT)
target    prot opt source              destination
acctboth  all  --  anywhere            anywhere

Chain FORWARD (policy ACCEPT)
target    prot opt source              destination

Chain OUTPUT (policy ACCEPT)
target    prot opt source              destination
acctboth  all  --  anywhere            anywhere

Chain acctboth (2 references)
target    prot opt source              destination
          tcp  --  server.-.com  anywhere            tcp dpt:http
          tcp  --  anywhere            server.-.com tcp spt:http
          tcp  --  server.-.com  anywhere            tcp dpt:smtp
          tcp  --  anywhere            server.-.com tcp spt:smtp
          tcp  --  server.-.com  anywhere            tcp dpt:pop3
          tcp  --  anywhere            server.-.com tcp spt:pop3
          icmp --  server.-.com  anywhere
          icmp --  anywhere            server.-.com
          tcp  --  server.-.com  anywhere
          tcp  --  anywhere            server.-.com
          udp  --  server.-.com  anywhere
          udp  --  anywhere            server.-.com
          all  --  server.-.com  anywhere
          all  --  anywhere            server.-.com
          tcp  --  server.-.com  anywhere            tcp dpt:http
          tcp  --  anywhere            server.-.com tcp spt:http
          tcp  --  server.-.com  anywhere            tcp dpt:smtp
          tcp  --  anywhere            server.-.com tcp spt:smtp
          tcp  --  server.-.com  anywhere            tcp dpt:pop3
          tcp  --  anywhere            server.-.com tcp spt:pop3
          icmp --  server.-.com  anywhere
          icmp --  anywhere            server.-.com
          tcp  --  server.-.com  anywhere
          tcp  --  anywhere            server.-.com
          udp  --  server.-.com  anywhere
          udp  --  anywhere            server.-.com
          all  --  server.-.com  anywhere
          all  --  anywhere            server.-.com
          tcp  --  server.-.com  anywhere            tcp dpt:http
          tcp  --  anywhere            server.-.com tcp spt:http
          tcp  --  server.-.com  anywhere            tcp dpt:smtp
          tcp  --  anywhere            server.-.com tcp spt:smtp
          tcp  --  server.-.com  anywhere            tcp dpt:pop3
          tcp  --  anywhere            server.-.com tcp spt:pop3
          icmp --  server.-.com  anywhere
          icmp --  anywhere            server.-.com
          tcp  --  server.-.com  anywhere
          tcp  --  anywhere            server.-.com
          udp  --  server.-.com  anywhere
          udp  --  anywhere            server.-.com
          all  --  server.-.com  anywhere
          all  --  anywhere            server.-.com
          tcp  --  server.-.com  anywhere            tcp dpt:http
          tcp  --  anywhere            server.-.com tcp spt:http
          tcp  --  server.-.com  anywhere            tcp dpt:smtp
          tcp  --  anywhere            server.-.com tcp spt:smtp
          tcp  --  server.-.com  anywhere            tcp dpt:pop3
          tcp  --  anywhere            server.-.com tcp spt:pop3
          icmp --  server.-.com  anywhere
          icmp --  anywhere            server.-.com
          tcp  --  server.-.com  anywhere
          tcp  --  anywhere            server.-.com
          udp  --  server.-.com  anywhere
          udp  --  anywhere            server.-.com
          all  --  server.-.com  anywhere
          all  --  anywhere            server.-.com
          tcp  --  server.-.com  anywhere            tcp dpt:http
          tcp  --  anywhere            server.-.com tcp spt:http
          tcp  --  server.-.com  anywhere            tcp dpt:smtp
          tcp  --  anywhere            server.-.com tcp spt:smtp
          tcp  --  server.-.com  anywhere            tcp dpt:pop3
          tcp  --  anywhere            server.-.com tcp spt:pop3
          icmp --  server.-.com  anywhere
          icmp --  anywhere            server.-.com
          tcp  --  server.-.com  anywhere
          tcp  --  anywhere            server.-.com
          udp  --  server.-.com  anywhere
          udp  --  anywhere            server.-.com
          all  --  server.-.com  anywhere
          all  --  anywhere            server.-.com
          tcp  --  server.-.com  anywhere            tcp dpt:http
          tcp  --  anywhere            server.-.com tcp spt:http
          tcp  --  server.-.com  anywhere            tcp dpt:smtp
          tcp  --  anywhere            server.-.com tcp spt:smtp
          tcp  --  server.-.com  anywhere            tcp dpt:pop3
          tcp  --  anywhere            server.-.com tcp spt:pop3
          icmp --  server.-.com  anywhere
          icmp --  anywhere            server.-.com
          tcp  --  server.-.com  anywhere
          tcp  --  anywhere            server.-.com
          udp  --  server.-.com  anywhere
          udp  --  anywhere            server.-.com
          all  --  server.-.com  anywhere
          all  --  anywhere            server.-.com
          tcp  --  server.-.com  anywhere            tcp dpt:http
          tcp  --  anywhere            server.-.com tcp spt:http
          tcp  --  server.-.com  anywhere            tcp dpt:smtp
          tcp  --  anywhere            server.-.com tcp spt:smtp
          tcp  --  server.-.com  anywhere            tcp dpt:pop3
          tcp  --  anywhere            server.-.com tcp spt:pop3
          icmp --  server.-.com  anywhere
          icmp --  anywhere            server.-.com
          tcp  --  server.-.com  anywhere
          tcp  --  anywhere            server.-.com
          udp  --  server.-.com  anywhere
          udp  --  anywhere            server.-.com
          all  --  server.-.com  anywhere
          all  --  anywhere            server.-.com
          tcp  --  server.-.com  anywhere            tcp dpt:http
          tcp  --  anywhere            server.-.com tcp spt:http
          tcp  --  server.-.com  anywhere            tcp dpt:smtp
          tcp  --  anywhere            server.-.com tcp spt:smtp
          tcp  --  server.-.com  anywhere            tcp dpt:pop3
          tcp  --  anywhere            server.-.com tcp spt:pop3
          icmp --  server.-.com  anywhere
          icmp --  anywhere            server.-.com
          tcp  --  server.-.com  anywhere
          tcp  --  anywhere            server.-.com
          udp  --  server.-.com  anywhere
          udp  --  anywhere            server.-.com
          all  --  server.-.com  anywhere
          all  --  anywhere            server.-.com
          tcp  --  server.-.com  anywhere            tcp dpt:http
          tcp  --  anywhere            server.-.com tcp spt:http
          tcp  --  server.-.com  anywhere            tcp dpt:smtp
          tcp  --  anywhere            server.-.com tcp spt:smtp
          tcp  --  server.-.com  anywhere            tcp dpt:pop3
          tcp  --  anywhere            server.-.com tcp spt:pop3
          icmp --  server.-.com  anywhere
          icmp --  anywhere            server.-.com
          tcp  --  server.-.com  anywhere
          tcp  --  anywhere            server.-.com
          udp  --  server.-.com  anywhere
          udp  --  anywhere            server.-.com
          all  --  server.-.com  anywhere
          all  --  anywhere            server.-.com
          tcp  --  server.-.com  anywhere            tcp dpt:http
          tcp  --  anywhere            server.-.com tcp spt:http
          tcp  --  server.-.com  anywhere            tcp dpt:smtp
          tcp  --  anywhere            server.-.com tcp spt:smtp
          tcp  --  server.-.com  anywhere            tcp dpt:pop3
          tcp  --  anywhere            server.-.com tcp spt:pop3
          icmp --  server.-.com  anywhere
          icmp --  anywhere            server.-.com
          tcp  --  server.-.com  anywhere
          tcp  --  anywhere            server.-.com
          udp  --  server.-.com  anywhere
          udp  --  anywhere            server.-.com
          all  --  server.-.com  anywhere
          all  --  anywhere            server.-.com
          all  --  anywhere            anywhere


archey 08-24-2009 12:26 AM

friendly bump

bathory 08-24-2009 12:38 AM

Does
Code:

netstat -tanpl|grep 3306
produce any output?
If not, you have to comment out "skip-networking" from my.cnf, or remove that option from the mysqld startup script

repo 08-24-2009 12:43 AM

Open the port on your firewall.
Since you use cpanel, take a look for the firewall settings, or contact support.


All times are GMT -5. The time now is 10:49 PM.