Massimo Di Pierro <massimo.dipierro@...> writes:

> 
> 
> Good catch!On Tuesday, 30 October 2012 18:50:31 UTC-5, pbreit  wrote:
> Apparently this works:
> db = DAL('mysql://localhost/web2py',
driver_args={'unix_socket':'/opt/local/var/run/mysql51/mysqld.sock'})
> 
> 
> On Tuesday, October 30, 2012 11:10:16 AM UTC-7, Julien Courteau
wrote:Hello,I need to access a mysql db through a socket file from DAL. What
is the connection stringI should use. The socket file is:
"/tmp/mysql5.sock". Should I use something like that:    db =
DAL('mysql://username:password <at> localhost:/tmp/mysql5.sock')?Thanks.
> 
> 
> 
> 
> 
> 


Hello There,

   I have tried to do this to connect to a postgres 9.4 and it did not work.

   I received the error bellow:

  File "psycopg2/__init__.py", line 164, in connect
OperationalError: invalid connection option "unix_socket"

Any hints?

Thank in advance,

Paulo

-- 
Resources:
- http://web2py.com
- http://web2py.com/book (Documentation)
- http://github.com/web2py/web2py (Source code)
- https://code.google.com/p/web2py/issues/list (Report Issues)
--- 
You received this message because you are subscribed to the Google Groups 
"web2py-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to web2py+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to