pbreit Wed, 13 Jun 2012 12:14:18 -0700
Apparently it's easier than that:
db = DAL('mysql://localhost/web2py', driver_args={'unix_socket':'/opt/local/var/run/mysql51/mysqld.sock'})