int mysql_library_init(int argc, char **argv, char **groups);
Le résultat est 0 en cas de succès.
#include <mysql.h>
...
if (mysql_library_init(-1, NULL, NULL))
   {
   ...
   }
...
if (!mysql_thread_safe())
   {
   ...
   }
...
mysql_library_end();
...