OVH Cloud OVH Cloud

[MYSQL-serveur] port de connexion

4 réponses
Avatar
edouard cante
Bonjour à tous,

je voudrais savoir comment faire pour que mon port 3306 soit à lécoute
de connection exterieure.
Pour info, le serveur sql tourne, mais aucun moyen de se connecter de
l'exterieur.
Si quelqu'un a une idée, j'aimerai bien pouvoir me servir de me serveur
depuis l'exterieur ;)

Merci beaucoup, Edouard


=> Un netstat -l me donne :



Active Internet connections (only servers)
Proto Recv-Q Send-Q Local Address Foreign Address
State
tcp 0 0 *:time *:*
LISTEN
tcp 0 0 *:discard *:*
LISTEN
tcp 0 0 *:netbios-ssn *:*
LISTEN
tcp 0 0 *:daytime *:*
LISTEN
tcp 0 0 *:www *:*
LISTEN
tcp 0 0 *:10000 *:*
LISTEN
tcp 0 0 *:ftp *:*
LISTEN
tcp 0 0 *:ipp *:*
LISTEN
tcp 0 0 localhost.localdom:smtp *:*
LISTEN
tcp 0 0 *:microsoft-ds *:*
LISTEN
tcp6 0 0 *:ssh *:*
LISTEN
udp 0 0 192.168.0.15:netbios-ns
*:*
udp 0 0 *:netbios-ns
*:*
udp 0 0 *:discard
*:*
udp 0 0 192.168.0.1:netbios-dgm
*:*
udp 0 0 *:netbios-dgm
*:*
udp 0 0 *:10000
*:*
udp 0 0 *:bootpc
*:*
udp 0 0 *:ipp
*:*
Active UNIX domain sockets (only servers)
Proto RefCnt Flags Type State I-Node Path
unix 2 [ ACC ] STREAM LISTENING 11914
/var/run/mysqld/mysqld.sock
unix 2 [ ACC ] STREAM LISTENING 4466
/tmp/mcop-ecante/localhost_localdomain-045e-421c4407
unix 2 [ ACC ] STREAM LISTENING 5234
/tmp/orbit-ecante/linc-4a6-0-17f9ad86cd349
unix 2 [ ACC ] STREAM LISTENING 5249
/tmp/orbit-ecante/linc-49f-0-27c69675f15e5
unix 2 [ ACC ] STREAM LISTENING 2812
/tmp/.X11-unix/X64
unix 2 [ ACC ] STREAM LISTENING 2957
/var/run/xdmctl/dmctl/socket
unix 2 [ ACC ] STREAM LISTENING 2961 /tmp/.X11-unix/X0
unix 2 [ ACC ] STREAM LISTENING 2965
/var/run/xdmctl/dmctl-:0/socket
unix 2 [ ACC ] STREAM LISTENING 4239
/tmp/ksocket-ecante/kdeinit__0
unix 2 [ ACC ] STREAM LISTENING 4241
/tmp/ksocket-ecante/kdeinit-:0
unix 2 [ ACC ] STREAM LISTENING 4247
/tmp/.ICE-unix/dcop1092-1109148660
unix 2 [ ACC ] STREAM LISTENING 4268
/tmp/ksocket-ecante/klauncherP0Zl4a.slave-socket
unix 2 [ ACC ] STREAM LISTENING 6040
/tmp/orbit-ecante/linc-51b-0-2a79d012d00f6
unix 2 [ ACC ] STREAM LISTENING 4211
/tmp/ssh-sgWAQF1024/agent.1024


--
Pensez à lire la FAQ de la liste avant de poser une question :
http://wiki.debian.net/?DebianFrench

Pensez à rajouter le mot ``spam'' dans vos champs "From" et "Reply-To:"

To UNSUBSCRIBE, email to debian-user-french-REQUEST@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org

4 réponses

Avatar
Yannick Siegler
edouard cante () écrivait:

Bonjour à tous,

je voudrais savoir comment faire pour que mon port 3306 soit à lécoute
de connection exterieure.
Pour info, le serveur sql tourne, mais aucun moyen de se connecter de
l'exterieur.
Si quelqu'un a une idée, j'aimerai bien pouvoir me servir de me serveur
depuis l'exterieur ;)

Merci beaucoup, Edouard



regarde le paramètre bind-address dans /etc/mysql/my.cnf

sich



--
Pensez à lire la FAQ de la liste avant de poser une question :
http://wiki.debian.net/?DebianFrench

Pensez à rajouter le mot ``spam'' dans vos champs "From" et "Reply-To:"

To UNSUBSCRIBE, email to
with a subject of "unsubscribe". Trouble? Contact
Avatar
Jean-Charles Preaux
Bonjour,
Peut etre en commentant la variable "skip-networking" dans le fichier
my.cnf ?

JCP

edouard cante a écrit :

Bonjour à tous,

je voudrais savoir comment faire pour que mon port 3306 soit à lécoute
de connection exterieure.
Pour info, le serveur sql tourne, mais aucun moyen de se connecter de
l'exterieur.
Si quelqu'un a une idée, j'aimerai bien pouvoir me servir de me
serveur depuis l'exterieur ;)

Merci beaucoup, Edouard


=> Un netstat -l me donne :



Active Internet connections (only servers)
Proto Recv-Q Send-Q Local Address Foreign Address
State tcp 0 0 *:time
*:* LISTEN tcp 0 0
*:discard *:* LISTEN tcp
0 0 *:netbios-ssn *:* LISTEN
tcp 0 0 *:daytime *:*
LISTEN tcp 0 0 *:www
*:* LISTEN tcp 0 0
*:10000 *:* LISTEN tcp
0 0 *:ftp *:* LISTEN
tcp 0 0 *:ipp *:*
LISTEN tcp 0 0 localhost.localdom:smtp
*:* LISTEN tcp 0 0
*:microsoft-ds *:* LISTEN tcp6
0 0 *:ssh *:* LISTEN
udp 0 0 192.168.0.15:netbios-ns
*:* udp 0 0
*:netbios-ns *:* udp
0 0 *:discard *:*
udp 0 0 192.168.0.1:netbios-dgm
*:* udp 0 0
*:netbios-dgm *:* udp
0 0 *:10000 *:*
udp 0 0 *:bootpc
*:* udp 0 0
*:ipp *:* Active UNIX
domain sockets (only servers)
Proto RefCnt Flags Type State I-Node Path
unix 2 [ ACC ] STREAM LISTENING 11914
/var/run/mysqld/mysqld.sock
unix 2 [ ACC ] STREAM LISTENING 4466
/tmp/mcop-ecante/localhost_localdomain-045e-421c4407
unix 2 [ ACC ] STREAM LISTENING 5234
/tmp/orbit-ecante/linc-4a6-0-17f9ad86cd349
unix 2 [ ACC ] STREAM LISTENING 5249
/tmp/orbit-ecante/linc-49f-0-27c69675f15e5
unix 2 [ ACC ] STREAM LISTENING 2812
/tmp/.X11-unix/X64
unix 2 [ ACC ] STREAM LISTENING 2957
/var/run/xdmctl/dmctl/socket
unix 2 [ ACC ] STREAM LISTENING 2961
/tmp/.X11-unix/X0
unix 2 [ ACC ] STREAM LISTENING 2965
/var/run/xdmctl/dmctl-:0/socket
unix 2 [ ACC ] STREAM LISTENING 4239
/tmp/ksocket-ecante/kdeinit__0
unix 2 [ ACC ] STREAM LISTENING 4241
/tmp/ksocket-ecante/kdeinit-:0
unix 2 [ ACC ] STREAM LISTENING 4247
/tmp/.ICE-unix/dcop1092-1109148660
unix 2 [ ACC ] STREAM LISTENING 4268
/tmp/ksocket-ecante/klauncherP0Zl4a.slave-socket
unix 2 [ ACC ] STREAM LISTENING 6040
/tmp/orbit-ecante/linc-51b-0-2a79d012d00f6
unix 2 [ ACC ] STREAM LISTENING 4211
/tmp/ssh-sgWAQF1024/agent.1024






--
Pensez à lire la FAQ de la liste avant de poser une question :
http://wiki.debian.net/?DebianFrench

Pensez à rajouter le mot ``spam'' dans vos champs "From" et "Reply-To:"

To UNSUBSCRIBE, email to
with a subject of "unsubscribe". Trouble? Contact
Avatar
Basile STARYNKEVITCH
Le Wed, Feb 23, 2005 at 11:11:37AM +0100, edouard cante écrivait/wrote:
Bonjour à tous,

je voudrais savoir comment faire pour que mon port 3306 soit à lécoute
de connection exterieure.
Pour info, le serveur sql tourne, mais aucun moyen de se connecter de
l'exterieur.
Si quelqu'un a une idée, j'aimerai bien pouvoir me servir de me serveur
depuis l'exterieur ;)




Il faut le configurer dans /etc/mysql/my.conf par exemple

# The skip-networking option will no longer be set via debconf menu.
# You have to manually change it if you want networking i.e. the server
# listening on port 3306. The default is "disable" - for security reasons.
#skip-networking
bind-address = 192.168.0.5


--
Basile STARYNKEVITCH http://starynkevitch.net/Basile/
email: basile<at>starynkevitch<dot>net
aliases: basile<at>tunes<dot>org = bstarynk<at>nerim<dot>net
8, rue de la Faïencerie, 92340 Bourg La Reine, France


--
Pensez à lire la FAQ de la liste avant de poser une question :
http://wiki.debian.net/?DebianFrench

Pensez à rajouter le mot ``spam'' dans vos champs "From" et "Reply-To:"

To UNSUBSCRIBE, email to
with a subject of "unsubscribe". Trouble? Contact
Avatar
Denis
Ça se configure dans /etc/mysql/my.cnf

Suivant ta version de mysql, tu as une option skip-networking ou une
bind adress à changer.

Denis

edouard cante wrote:

Bonjour à tous,

je voudrais savoir comment faire pour que mon port 3306 soit à lécoute
de connection exterieure.
Pour info, le serveur sql tourne, mais aucun moyen de se connecter de
l'exterieur.
Si quelqu'un a une idée, j'aimerai bien pouvoir me servir de me
serveur depuis l'exterieur ;)

Merci beaucoup, Edouard


=> Un netstat -l me donne :



Active Internet connections (only servers)
Proto Recv-Q Send-Q Local Address Foreign Address
State tcp 0 0 *:time
*:* LISTEN tcp 0 0
*:discard *:* LISTEN tcp
0 0 *:netbios-ssn *:* LISTEN
tcp 0 0 *:daytime *:*
LISTEN tcp 0 0 *:www
*:* LISTEN tcp 0 0
*:10000 *:* LISTEN tcp
0 0 *:ftp *:* LISTEN
tcp 0 0 *:ipp *:*
LISTEN tcp 0 0 localhost.localdom:smtp
*:* LISTEN tcp 0 0
*:microsoft-ds *:* LISTEN tcp6
0 0 *:ssh *:* LISTEN
udp 0 0 192.168.0.15:netbios-ns
*:* udp 0 0
*:netbios-ns *:* udp
0 0 *:discard *:*
udp 0 0 192.168.0.1:netbios-dgm
*:* udp 0 0
*:netbios-dgm *:* udp
0 0 *:10000 *:*
udp 0 0 *:bootpc
*:* udp 0 0
*:ipp *:* Active UNIX
domain sockets (only servers)
Proto RefCnt Flags Type State I-Node Path
unix 2 [ ACC ] STREAM LISTENING 11914
/var/run/mysqld/mysqld.sock
unix 2 [ ACC ] STREAM LISTENING 4466
/tmp/mcop-ecante/localhost_localdomain-045e-421c4407
unix 2 [ ACC ] STREAM LISTENING 5234
/tmp/orbit-ecante/linc-4a6-0-17f9ad86cd349
unix 2 [ ACC ] STREAM LISTENING 5249
/tmp/orbit-ecante/linc-49f-0-27c69675f15e5
unix 2 [ ACC ] STREAM LISTENING 2812
/tmp/.X11-unix/X64
unix 2 [ ACC ] STREAM LISTENING 2957
/var/run/xdmctl/dmctl/socket
unix 2 [ ACC ] STREAM LISTENING 2961
/tmp/.X11-unix/X0
unix 2 [ ACC ] STREAM LISTENING 2965
/var/run/xdmctl/dmctl-:0/socket
unix 2 [ ACC ] STREAM LISTENING 4239
/tmp/ksocket-ecante/kdeinit__0
unix 2 [ ACC ] STREAM LISTENING 4241
/tmp/ksocket-ecante/kdeinit-:0
unix 2 [ ACC ] STREAM LISTENING 4247
/tmp/.ICE-unix/dcop1092-1109148660
unix 2 [ ACC ] STREAM LISTENING 4268
/tmp/ksocket-ecante/klauncherP0Zl4a.slave-socket
unix 2 [ ACC ] STREAM LISTENING 6040
/tmp/orbit-ecante/linc-51b-0-2a79d012d00f6
unix 2 [ ACC ] STREAM LISTENING 4211
/tmp/ssh-sgWAQF1024/agent.1024






--
Pensez à lire la FAQ de la liste avant de poser une question :
http://wiki.debian.net/?DebianFrench

Pensez à rajouter le mot ``spam'' dans vos champs "From" et "Reply-To:"

To UNSUBSCRIBE, email to
with a subject of "unsubscribe". Trouble? Contact