Initializer
init(hostname:port:username:password:database:tlsConfiguration:)
Create a
MySQLConfiguration for connecting to a server with a hostname and optional port.init(hostname: String, port: Int = Self.ianaPortNumber, username: String, password: String, database: String? = nil, tlsConfiguration: TLSConfiguration? = .makeClientConfiguration())
Parameters
hostnameThe hostname to connect to.
portA TCP port number to connect on. Defaults to the IANA-assigned MySQL port number (3306).
usernameThe username to use for the connection.
passwordThe pasword (empty string for none) to use for the connection.
databaseThe default database fr the connection, if any.
tlsConfigurationAn optional
TLSConfigurationspecifying encryption for the connection.