Hi,
I think you have at least two ways:
1.To put the corect path to the sock file, in my.cnf configuration file.
2.To find where MySQL daemon create this file and add the argument -S  to
the mysql client application.

Regards,

Gelu
_____________________________________________________
G.NET SOFTWARE COMPANY

Permanent e-mail address : [EMAIL PROTECTED]
                                          [EMAIL PROTECTED]
----- Original Message -----
From: "Murad Nayal" <[EMAIL PROTECTED]>
Cc: <[EMAIL PROTECTED]>
Sent: Friday, March 14, 2003 10:42 PM
Subject: forcing mysql client to use TCP socket?


>
>
> Hello,
>
> how can I force mysql interactive client (actually the client library as
> well) to use a TCP port on the local host
>
> if I do:
>
> mysql -h localhost -u user -p --port=2000
>
> I get:
>
> ERROR 2002: Can't connect to local MySQL server through socket
> '/tmp/mysql.sock'
>
> what might be a problem is: it seems, for reasons I don't entirely
> understand possibly related to the network configuration on this node, I
> need to use the name 'localhost' rather than the actual name of the
> node!
>
> thanks in advance for the help
>
> Murad
>
> ---------------------------------------------------------------------
> 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
>
>


---------------------------------------------------------------------
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

Reply via email to