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
unixDomainSocketPathThe path to the UNIX domain socket to connect through.
usernameThe username to use for the connection.
passwordThe password (empty string for none) to use for the connection.
databaseThe default database for the connection, if any.
tlsConfigurationAn optional
TLSConfigurationspecifying encryption for the connection.