Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
(MySql) (): Can't connect to l (RESOLU)
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index French
View previous topic :: View next topic  
Author Message
geforce
l33t
l33t


Joined: 29 Dec 2003
Posts: 653
Location: Canada

PostPosted: Fri Apr 22, 2005 7:06 pm    Post subject: (MySql) (): Can't connect to l (RESOLU) Reply with quote

Bonjour.

J'ai présentemetn l'erreur suivante:

Quote:

Warning: mysql_connect(): Can't connect to local MySQL server through socket '/var/run/mysqld/mysqld.sock' (2) in /pub/www/hosts/collegedechampigny.com/default/include/mysql.php on line 7
Unable to connect to SQL server




Voici ce uqe j'ai fait pour essayer de debugger mon Mysql:

/etc/init.d/mysql stop:
Code:

* Stopping mysqld...                                                     [ !! ]


Ensuite :

/etc/init.d/mysql zap


et pour continuer: /etc/init.d/mysql start

..

J'ai cependant la meme erreur


Mon mysql.err:

Quote:

tail -f /var/log/mysql/mysql.err

050422 15:06:08 mysqld started
050422 15:06:08 Can't start server: Bind on TCP/IP port: Address already in use
050422 15:06:08 Do you already have another mysqld server running on port: 3306 ?
050422 15:06:08 Aborting

050422 15:06:08 /usr/sbin/mysqld: Shutdown Complete

050422 15:06:08 mysqld ended




J'ai vite besoin de remettre ce serveur sur pied car ces le main serveur de la cie....



Merci


Phil
GeForce
_________________
User #29433


Last edited by geforce on Fri Apr 22, 2005 7:14 pm; edited 1 time in total
Back to top
View user's profile Send private message
Oupsman
Veteran
Veteran


Joined: 19 Jul 2004
Posts: 1042

PostPosted: Fri Apr 22, 2005 7:10 pm    Post subject: Re: (MySql) (): Can't connect to l Reply with quote

geforce wrote:


Quote:

tail -f /var/log/mysql/mysql.err

050422 15:06:08 mysqld started
050422 15:06:08 Can't start server: Bind on TCP/IP port: Address already in use
050422 15:06:08 Do you already have another mysqld server running on port: 3306 ?
050422 15:06:08 Aborting

050422 15:06:08 /usr/sbin/mysqld: Shutdown Complete

050422 15:06:08 mysqld ended




Cette erreur là indique qu'il y'a déjà un processus démarré qui occupe le port de MySQL. Un netstat -anp |grep 3306 devrait te permettre de l'identifier.
_________________
--
L'idéal de nouveauté semble avoir remplacé l'idéal de progrès. C'est bien triste.

----
Unix philosophy: "Do one thing and do it well."
systemd: "Try to do everything and do it wrong."
Back to top
View user's profile Send private message
CourJuS
Tux's lil' helper
Tux's lil' helper


Joined: 26 Jun 2004
Posts: 99
Location: Belgique

PostPosted: Fri Apr 22, 2005 7:10 pm    Post subject: Reply with quote

2 ptite idées

que donne un ps ax ??
et unReboot du server si sa pose pas trop de problem sa donne quoi ?
Back to top
View user's profile Send private message
geforce
l33t
l33t


Joined: 29 Dec 2003
Posts: 653
Location: Canada

PostPosted: Fri Apr 22, 2005 7:11 pm    Post subject: Reply with quote

Quote:
netstat -anp |grep 3306
tcp 0 0 127.0.0.1:3306 0.0.0.0:* LISTEN 9470/mysqld

_________________
User #29433
Back to top
View user's profile Send private message
CourJuS
Tux's lil' helper
Tux's lil' helper


Joined: 26 Jun 2004
Posts: 99
Location: Belgique

PostPosted: Fri Apr 22, 2005 7:13 pm    Post subject: Reply with quote

geforce wrote:
Quote:
netstat -anp |grep 3306
tcp 0 0 127.0.0.1:3306 0.0.0.0:* LISTEN 9470/mysqld


killall -9 mysqld (un px bourin mais bon éfficace)
et /etc/init.d/mysql start
Back to top
View user's profile Send private message
geforce
l33t
l33t


Joined: 29 Dec 2003
Posts: 653
Location: Canada

PostPosted: Fri Apr 22, 2005 7:14 pm    Post subject: Reply with quote

MERCI !
_________________
User #29433
Back to top
View user's profile Send private message
CourJuS
Tux's lil' helper
Tux's lil' helper


Joined: 26 Jun 2004
Posts: 99
Location: Belgique

PostPosted: Fri Apr 22, 2005 7:15 pm    Post subject: Reply with quote

sa marche ? si oui un ptit (résolut) dans le topics :) <---- j'ai rien dit

lol l'interactivité c'est plus un forum mais un IM mainent :lol:
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index French All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum