TestConnection

Class: TMMConnection

function TestConnection(out AServerVersion: string; out AMsg: string): Boolean;

Opens a MySQL/MariaDB connection and verifies credentials.
AServerVersion receives the server version string on success.
AMsg receives the error description on failure.
Timeout: HTTP_TIMEOUT_DEFAULT (overridden by TimeoutMs when non-zero).

On success, server limits are populated automatically, ConnectionTested is set to True, and the schema browser properties (MySQLDatabase, TableNames, DatabaseStructure) are populated from the server.

See Also

(C) 2026 Easygate, Lda