Roundcube Community Forum

Release Support => Pending Issues => Topic started by: jb1998 on October 28, 2015, 12:46:13 PM

Title: Connecting to a Database with the Hostname: localhost:/tmp/mysql5.sock
Post by: jb1998 on October 28, 2015, 12:46:13 PM
Hi,

Trying to connect to a MySQL DB that has the host name "localhost:/tmp/mysql5.sock", it's not working... Any ideas?

Thanks :)
Jonathan
Title: Re: Connecting to a Database with the Hostname: localhost:/tmp/mysql5.sock
Post by: alec on October 29, 2015, 03:19:13 AM
So, you want to connect to a socket, try: mysql://user:pass@unix(/path/to/socket)/database
Title: Re: Connecting to a Database with the Hostname: localhost:/tmp/mysql5.sock
Post by: jb1998 on October 29, 2015, 01:05:31 PM
Hi,

Tried both what you said with the "unix" and without.

Without the unix I got this error: DSN (write):  NOT OK(SQLSTATE[HY000] [2002] php_network_getaddresses: getaddrinfo failed: Name or service not known)

With the unix I got this error: DSN (write):  NOT OK(SQLSTATE[HY000] [2002] No such file or directory)

Any ideas?