http://coolestguidesontheplanet.com/get-apache-mysql-php-phpmyadmin-working-osx-10-10-yosemite/#mysql 解决你们的问题所遇到的问题,写的很详细,愿你们解决问题。