Re: No connection to mysqld

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Sun, 2011-02-27 at 01:03 -0600, jheid wrote:
> Martin Gregorie wrote:
> > 
> > The Mysql 5.5 manual clearly says that the Windows version uses a Unix
> > socket file rather than a TCP/IP port if you set the host name to
> > localhost or didn't specify one. 
> > 
> 
> 
> I used mysql -h 127.0.0.1 -p <port>
> 
-p <port> is never going to work. You need -P because -p is used to
supply a password. Try:

	mysql --host=localhost --port=<port> --protocol=tcp

My native Mysql 5.5 is listening on port 9092, so this works:

	mysql --host=localhost --port=9092 --protocol=tcp

All three arguments must be supplied or it complains about not being
able to use a pipe connection. Similarly, this works:

	telnet localhost 9092

and spits out gobbledegook. Ctrl-C cancels.


Martin





[Index of Archives]     [Gimp for Windows]     [Red Hat]     [Samba]     [Yosemite Camping]     [Graphics Cards]     [Wine Home]

  Powered by Linux