Search K
Appearance
Appearance
Driver name mysql
.
Driver for MySQL / MariaDB server.
To compile support for this driver, you need to have MySQL client library and headers installed.
For MariaDB, you need to have compatibility headers installed.
client_flags
0
Flags to use when connecting to the database, provided as base-10 number.
connect_timeout
5
How many seconds to wait for connection.
dbname
Database name to connect to.
host
localhost
Host to connect to.
Note that MySQL driver can default to using UNIX socket connection when host is localhost and port is left as default.
To force it to use TCP connection, set host
to 127.0.0.1
.
Alias for host
.
option_file
File to read for client library specific configuration.
option_group
Section name to read from option_file
.
password
Password for authentication.
port
3306
Port to connect to.
read_timeout
30
Timeout in seconds when reading data from server.
ssl_ca
Path to SSL certificate authority file to use to validate peer certificate.
ssl_ca_path
Path to directory of SSL certificate authority files to use to validate peer certificate.
ssl_cert
Path to a certificate file to use for authenticating against the remote server.
ssl_cipher
Cipher to use when connecting. See client library documentation.
ssl_key
Path to private key matching ssl_cert
to use for authenticating against the remote server.
ssl_verify_server_cert
no
Whether to verify server certificate.
user
Username for authentication.
write_timeout
30
Timeout in seconds when writing data to server.