On Mac OS (snow leopard) I have a SSH tunnel so that my local 3306 port is forwarded to remote MySQL. Apps like Navicat can establish connection successfuly.
But PHP's PDO can't connect and gives an error:
PDO::__construct():  No such file or directory (trying to connect via unix:///tmp/mysql.sock)
What should I do?