> Hello, > > I use MySQL running as a service on Windows XP. > > My host has the name excalibur and the IP 66.121.159.212 which is the same > machine as localhost (127.0.0.1). > > when I use the following command to connect to the database: > > mysql --user=dummy --password=dummy --host=localhost > > I cannot not connect > > when I use: > > mysql --user=dummy --password=dummy --pipe --host=localhost > > I can connect. > > when I use: > > mysql --user=dummy --password=dummy --host=excalibur > > I CAN connect. > > when I use: > > telnet localhost 3306 > > my connection is refused (that what telnet tells me) > > but with: > > telnet excalibur 3306 > > I can see some output of the MySQL-Server which tries to make a handshake. > > Are there people here who had the same problem ? > I can connect using localhost using a pipe and not a socket. > But I can connect using a socket when I use the name "excalibur" which is > the identical machine as localhost. > > Has someone a idea how to solve this problem ?
"localhost" and "excalibur" are not identical -- the first is connecting through 66.121.159.212, the other through 127.0.0.1. Most likely, you have not set permissions to connect from 127.0.0.1 "localhost" connections are by default done through a pipe, not TCP/IP. The server will refuse connections that seem to come from "127.0.0.1" -- unless you specifically set the perms. Don't specify "--host" when connecting to localhost -- then "--pipe" will be correctly be assumed. / Carsten -- Carsten H. Pedersen keeper and maintainer of the bitbybit.dk MySQL FAQ http://www.bitbybit.dk/mysqlfaq --------------------------------------------------------------------- Before posting, please check: http://www.mysql.com/manual.php (the manual) http://lists.mysql.com/ (the list archive) To request this thread, e-mail <[EMAIL PROTECTED]> To unsubscribe, e-mail <[EMAIL PROTECTED]> Trouble unsubscribing? Try: http://lists.mysql.com/php/unsubscribe.php