Mac Os 10.8.3 Cannot load default MySQL library: libmysqlclient.18.dylib lazarus / 16-Databases ---------------------------------------------------------------------- gabrielem · 2013-11-29 11:15 Hi everyone, I'm really new to pascal and lazarus, I'm a web designer not very skilled one in this paradigm of programming, but try to learn. Problem is when i try to put connection True on a database Mysql with 5.5  connector i recive error: Cannot load default MySQL library: libmysqlclient.18.dylib I had read several post on this forum with same problem, and try to adopt some solution. I try to made a sym link from /urs/local/mysql-5.6.11-osx10.7-x86_64/lib/ where actualy is my MySql lib: libmysqlclient.18.dylib to /usr/lib/ I read in some case it solve the problem not for me. Some times I see also istruction say I need to recompile Lazarus, and dont know how to doit. Hope some one can help My Mac is 10.8.3 MySql version is 5.6 (i'm using connector 5.5) Lazarus 1.0.14 lazarus-1.0.14-20131116-i386-macosx.dmg fpc-2.6.2.intel-macosx.dmg fpcsrc-2.6.2-i386-macosx.dmg ---------------------------------------------------------------------- marcov · 2013-11-29 12:09 You are creating a 32-bit application it seems (i386-macosx),  but your mysqlclient library seems to be 64-bit (-x86_64). Solution: install the 32-bit client lib. ---------------------------------------------------------------------- gabrielem · 2013-11-29 22:09 ok, thank you very mutch for your help! I'll try it! ---------------------------------------------------------------------- gabrielem · 2013-11-29 23:30 It work! I need to download tha version 5.5 becouse when i try 5.6 even at 32-bit with connector 5.5 dose not work, and present me an error message asking for 5.5 Than for avoid installing mysql 5.5 on my machine, becouse i need only client lib to access database on a remote server, i copy in the folder /usr/lib/ only the file: libmysqlclient.18.dylib and the symlink: libmysqlclient.dylib Restart Lazarus and It work! No error message when i set True on the connection! Thank you!