软连接

  1. ln -s /Applications/MAMP/tmp/mysql/mysql.sock /tmp/mysql.sock