PHWinfo banniere

Titres
PORTAIL ANNUAIRE ARTICLES COMPARATEUR HÉBERGEURS DEVIS FORUMS RÉDUCTEUR D'URL
Précédent   PHWinfo > Forums Hébergement > Forum Logiciels d'hébergement > mailing.database.mysql > Can't connect to mysql server
S'inscrire FAQ Membres Recherche Messages du jour Marquer les forums comme lus
Can't connect to mysql server

Réponse
 
LinkBack Outils de la discussion
Vieux 01/05/2006, 22h56   #1
dmcquay@gmail.com
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Can't connect to mysql server

Hi,

I am setting up MySQL on a development box. I have set it up and can
connect from localhost, but I cannot connect from another computer on
the network. I have narrowed down the problem quite a bit, but can't
quite figure it out still.

I am getting MySQL Error Number 2003 "Can't connect to MySQL server on
'server'. I know that the server is there because I can ping it. I am
also running a webserver from that computer and I am able to access
that just fine. I know that it is not a rights issue because if you
try to connect with a user that doesn't have rights, MySQL will respond
"Access denied for user: 'user@host' (Using password: YES)".

I checked on the host machine and check that the following are true:
- mysqld.exe is in the process list (in the task manager)
- MySQL is running on port 3306 (the one I'm trying to access it from)

Does anyone have any ideas why I am unable to connect to the MySQL
server?

  Réponse avec citation
Vieux 01/05/2006, 23h16   #2
Bill Karwin
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: Can't connect to mysql server

dmcquay@gmail.com wrote:
> Hi,
>
> I am setting up MySQL on a development box. I have set it up and can
> connect from localhost, but I cannot connect from another computer on
> the network.


It's a typical config for the MySQL installer to enable
"bind-address=127.0.0.1" in the my.ini file. So only clients connecting
from the same host can use MySQL. Comment out that line to disable the
restriction.

This is a dev box, so I assume it's safe from attacks from the internet.
But in general, make sure that disabling the bind-address config
doesn't expose your MySQL instance to connection attempts from the
internet. You'll be hacked within a few minutes.

Regards,
Bill K.
  Réponse avec citation
Vieux 10/05/2006, 17h59   #3
Dustin
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: Can't connect to mysql server

there is not line containg "bind-address=127.0.0.1" in the my.ini file
i am using. any other ideas?

  Réponse avec citation
Vieux 10/05/2006, 18h18   #4
Bill Karwin
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: Can't connect to mysql server

Dustin wrote:
> there is not line containg "bind-address=127.0.0.1" in the my.ini file
> i am using. any other ideas?


The next thing I would check is that you have a firewall preventing you
from reaching port 3306 on the server host. Even while it is allowing
connections on port 80 for your webserver on that machine, a firewall
can block other ports, such as MySQL's 3306.

Regards,
Bill K.
  Réponse avec citation
Réponse


Outils de la discussion

Règles de messages
Vous ne pouvez pas créer de nouvelles discussions
Vous ne pouvez pas envoyer des réponses
Vous ne pouvez pas envoyer des pièces jointes
Vous ne pouvez pas modifier vos messages

Les balises BB sont activées : oui
Les smileys sont activés : oui
La balise [IMG] est activée : oui
Le code HTML peut être employé : non
Trackbacks are oui
Pingbacks are oui
Refbacks are oui


Fuseau horaire GMT +1. Il est actuellement 12h33.


Édité par : vBulletin® version 3.7.3
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.2.0 RC5 Tous droits réservés.
Version française #16 par l'association vBulletin francophone
PHWinfo est un site Éducation Sans Frontières ©2000-2008
Ad Management by RedTyger
©Tous droits réservés par les parties respectives
Page generated in 0,11280 seconds with 12 queries