ldd -a /usr/local/bin/mysql
/sbin/ldconfig -m /usr/local/lib
-m Instead of replacing the contents of the hints file with those
found in the directories specified, “merge” in new entries.
Directories recorded in the hints file by previous runs of
ldconfig are also rescanned for new shared libraries.