On Thu, 22 Nov 2012 11:34:56 +0100, Reindl Harald
<h.rei...@thelounge.net> wrote:
> Am 22.11.2012 11:32, schrieb Mark Constable:
>> Is it possible to connect to MySQL via a unix socket?
>>
>> If so, what would be the exact db_dsnw example when my.cnf is set to...
>>
>> socket = /var/run/mysqld/mysqld.sock
>>
>> and my current config/db.inc.php contains...
>>
>> $rcmail_config['db_dsnw'] = 
>> 'mysql://rcadmin:XXXXXXX@localhost/roundcubemail';
> 
> localhost IS unix-socket
> 127.0.0.1 is TCP/IP

"Unix sockets" is sometimes understood to refer to something else:
sockets in the AF_UNIX address family, rather than AF_INET.

The contact points for Unix sockets are not network addresses,
but rather paths in the file system, often placed in /tmp or /var/tmp
by convention.

A pair of unnamed, connected sockets can also be created
with the socketpair function.

_______________________________________________
Roundcube Users mailing list
users@lists.roundcube.net
http://lists.roundcube.net/mailman/listinfo/users

Reply via email to