I recently updated my mySQL installation from 5.0 to 5.5 and started seeing this error. First look for libmysqlclient.so in your library by running “ldconfig -r”. I noticed that I had libmysqlclient.so.18 in mine since I just updated. I simply had to:
cd /usr/ports/mail/dovecot make clean make deinstall make make install /usr/local/etc/rc.d/dovecot start
Note: That you have to go to 5.1 first, mysql_upgrade and then you can install 5.5. Don’t make the mistake I did, then again if you are reading this you might already have it updated.
Did this fix your problem? Comment below.