Skip to content

Initializer

init(unixDomainSocketPath:username:password:database:tlsConfiguration:)

Create a MySQLConfiguration for connecting to a server through a UNIX domain socket.
init(unixDomainSocketPath: String, username: String, password: String, database: String? = nil, tlsConfiguration: TLSConfiguration?)

Parameters

unixDomainSocketPath

The path to the UNIX domain socket to connect through.

username

The username to use for the connection.

password

The password (empty string for none) to use for the connection.

database

The default database for the connection, if any.

tlsConfiguration

An optional TLSConfiguration specifying encryption for the connection.