Today when running rails application using agains MySQL Database, got the following error :
The strange thing is mysql already installed on my machine :
Seems rails cannot locate libmysqlclient.18.dylib which is located inĀ /usr/local/mysql/lib/libmysqlclient.18.dylib
because by default rails locate that file in /usr/lib folder.
Simple solution for this problem is creating symlink from /usr/local/mysql/lib to /usr/lib.
Update for ElCapiten:
if throw Operation Not permitted, change target folder from /usr/lib to /usr/local/lib
and now rails can start perfectly ..
Jakarta , 9 April 2015
A. Ahmad Kusumah

