MySqlServer class

MySQL classic-protocol server fronting a Database.

Pass password to require mysql_native_password auth; leave it null (or empty) to accept any client unconditionally.

Constructors

MySqlServer(Database db, {InternetAddress? address, int port = 3306, String? password, SecurityContext? tlsContext})

Properties

address → InternetAddress
final
boundPort → int
The actual port bound by start; useful when port was 0.
no setter
db → Database
final
hashCode → int
The hash code for this object.
no setterinherited
onLog ↔ void Function(String msg)?
getter/setter pair
password → String?
final
port → int
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
tlsContext → SecurityContext?
Optional TLS context; if non-null the server advertises CLIENT_SSL in the handshake and accepts an SSLRequest packet to upgrade the connection to TLS before reading the real HandshakeResponse.
final

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
start() → Future<void>
stop() → Future<void>
toString() → String
A string representation of this object.
inherited

Operators

operator ==(Object other) → bool
The equality operator.
inherited