mysql port is open or not??

Web page creation, programs, scripts, PHP, SQL?

Moderator: Moderators

mysql port is open or not??

Postby artis » Mon Nov 15, 2004 10:26 am

i try the "port:3360" cannot link in !
if open what is the port no.
artis
Newbie
 
Posts: 1
Joined: Mon Nov 15, 2004 10:21 am

Postby sjaz » Mon Nov 15, 2004 11:47 am

Hi, MySQL can only be connected internally (IE, from the server itself). You cannot connect to it from your home.

The MySQL port is 3306 for redhat.
User avatar
sjaz
Forum Admin
Forum Admin
 
Posts: 689
Joined: Fri Feb 14, 2003 11:08 pm
Location: London, UK

Postby sergioag » Mon Jan 31, 2005 2:36 pm

Hi

There are two ways of connecting to a mysql server:

- TCP/IP: as you said that's using port 3306. Some hostings have this turned of because of security reasons (to avoid someone out of their network access the database). This can be used in both Unix and Windows.
- Unix socket: this is the usual choice of you're running a mysql server on a unix machine (say, linux for example). It works with a unix socket at (by default, if i remember correctly) /tmp/mysock.sock. I have only used this when the mysql server is in the same machine as apache itself. To use this way you should specify "localhost" as the "host" parameter in the mysql_connect() function.

If connecting via tcp/ip is not working, and your server is a unix one you should try the second one.

Hope this works.

Sergio
sergioag
Newbie
 
Posts: 6
Joined: Mon Jan 31, 2005 2:20 pm

Postby zoli » Fri Feb 04, 2005 6:29 am

hi,

MySQL account on polarhome hosts are created for host: localhost - it means that you can connetct to socket or port (if it is open) just from localhost.

Otherwise MySQL ports are not portforwarded.
More to read at http://www.polarhome.com/service/ports.html
Regards,
Z
---
Zoltan Arpadffy
zoli
Forum Admin
Forum Admin
 
Posts: 756
Joined: Mon Sep 30, 2002 1:27 am
Location: Stockholm, Sweden


Return to Web development

Who is online

Users browsing this forum: No registered users and 3 guests

cron