Apparently it's easier than that:

db = DAL('mysql://localhost/web2py', 
driver_args={'unix_socket':'/opt/local/var/run/mysql51/mysqld.sock'})

Reply via email to