If you want to allow your application to be linked against the
        embedded MySQL server library, you must use the
        mysql_server_init() and
        mysql_server_end() functions. See
        Sección 24.2.16, “libmysqld, la biblioteca del servidor MySQL incrustado (embedded)”.
      
        However, to provide improved memory management, even programs
        that are linked with -lmysqlclient rather
        than -lmysqld should include calls to begin
        and end use of the library. As of MySQL 4.1.10 and 5.0.3, the
        mysql_library_init() and
        mysql_library_end() functions can be used to
        do this. These actually are #define symbols
        that make them equivalent to
        mysql_server_init() and
        mysql_server_end(), but the names more
        clearly indicate that they should be called when beginning and
        ending use of a MySQL C API library no matter whether the
        application uses libmysqlclient or
        libmysqld. For more information, see
        Sección 24.2.2, “Panorámica de funciones de la API C”.
      
Ésta es una traducción del manual de referencia de MySQL, que puede encontrarse en dev.mysql.com. El manual de referencia original de MySQL está escrito en inglés, y esta traducción no necesariamente está tan actualizada como la versión original. Para cualquier sugerencia sobre la traducción y para señalar errores de cualquier tipo, no dude en dirigirse a mysql-es@vespito.com.

