View Single Post

   
  #4 (permalink)  
Old 02-28-2008, 08:13 AM
Axel Schwenke
 
Posts: n/a
Default Re: Replace localhost Unix socket connection by Localhost TCP/IP connection

Damien Desmarets <damienNOSPAMPLEASE@deviantnetwork.com> wrote:
> Kai Ruhnau a écrit :
>>
>> localhost -> Unix socket
>> 127.0.0.1 -> TCP socket
>>

> I wan't change all scripts of my clients, they use localhost for the host.
> I want mysql to stopping using unix socket for localhost and use the IP
> of localhost (changing to a remote server not 127.0.0.1).


That's not possible AFAIK. The "localhost -> socket" rule is hardcoded
in the MySQL client library. You can start mysqld with --skip-socket
to have it not listening on a UNIX socket. But then all your localhost
clients will fail to connect.


XL
--
Axel Schwenke, Senior Software Developer, MySQL AB

Online User Manual: http://dev.mysql.com/doc/refman/5.0/en/
MySQL User Forums: http://forums.mysql.com/
Reply With Quote