You can clone with
HTTPS or Subversion.
Change the default hostname to 127.0.0.1.
PHP5.3.x's mysqlnd mimics some of that behavior but doesn't have a way to force tcp likr the mysql client. (What about named pipes?)
(In ) Fixes #1642
I assume there is no trap in this one ;)