Replace 127.0.0.1 with localhost for OSX default MySQL installation.