libmysqlclient_r is guaranteed to be thread safe for every connection. However, MySQL documentation prior to MySQL 5.5 is unclear as to whether multithreaded applications can reference libmysqlclient if there is no simultaneous access to a single MySQL connection descriptor.
Based on experience, I used libmysqlclient for applications that process 100-400 queries per second and work for 5 years. I have not encountered any problems yet.
source
share