mysql\_options(3) MariaDB Connector/C mysql\_options(3)

## [Name](#Name)

mysql\_options - Used to set extra connect options and affect behavior of a connection

## [Synopsis](#Synopsis)

```
#include <mysql.h>
int mysql_options(MYSQL * mysql,


                  enum mysql_option,


                  const void * arg);
    
```

## [Description](#Description)

Used to set extra connect options and affect behavior for a connection. This function may be called multiple times to set several options. mysql\_options() should be called after [**mysql\_init(3)**](/man/enterprise-packages/mariadb-12.0/mysql_init.3).

## [Notes](#Notes)

This function is deprecated, new implementations should use [**mysql\_optionsv(3)**](/man/enterprise-packages/mariadb-12.0/mysql_optionsv.3) api function instead.

## [Options](#Options)

An overview of the possible options can be found in the description of the [**mysql\_optionsv(3)**](/man/enterprise-packages/mariadb-12.0/mysql_optionsv.3) API function.

## [See Also](#See_Also)

*[*mysql\_init(3)*](/man/enterprise-packages/mariadb-12.0/mysql_init.3) [mysql\_optionsv(3)](/man/enterprise-packages/mariadb-12.0/mysql_optionsv.3)* \*[**mysql\_real\_connect(3)**](/man/enterprise-packages/mariadb-12.0/mysql_real_connect.3)

Version 3.4

---

Document: mysql_options(3) from mariadb-12.0 12.0.2-r5 (Chainguard OS)
