Change MySQL default installation directory in OS X
1- Open mysqld_safe in NewMysqlDir/bin with a text editor &amp; replase all /usr/local/mysql to NewMysqlDir &amp; save.

2- Open mysqld_safe in NewMysqlDir/bin with Terminal