# mysql\_library\_init

## Syntax

```c
int mysql_library_init(int argc, char **argv, char **groups)
```

## Description

Call to initialize the library before calling other functions, both for embedded servers and regular clients. If used on an embedded server, the server is started and subsystems initialized. Returns zero for success, or nonzero if an error occurred.

Call [mysql\_library\_end()](https://mariadb.com/docs/connectors/mariadb-connector-c/api-functions/mysql_library_end) to clean up after completion.

{% hint style="info" %}
`mysql_server_init()` is an alias.
{% endhint %}

## See also

* [mysql\_library\_end()](https://mariadb.com/docs/connectors/mariadb-connector-c/api-functions/mysql_library_end)

{% @marketo/form formId="4316" %}
