modified for mac os yosemite with home brew isntallation of mysql