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 string
> I should use. The socket file is: "/tmp/mysql5.sock". Should I use
> something like that:
> db = DAL('mysql://username:password@localhost:/tmp/mysql5.sock')?
>
> Thanks.
>
--

