final class ReloadTls
    implements InstanceAction
    uses Snapshot
Public API: explicitly declared with @visibility public.

RELOAD TLS [FOR CHANNEL channel] [NO ROLLBACK ON ERROR]: reconfigure the TLS context of a connection interface (MySQL 8.0.16 and later).

Mirrors ALTER_INSTANCE_RELOAD_TLS_ROLLBACK_ON_ERROR and, with NO ROLLBACK ON ERROR, ALTER_INSTANCE_RELOAD_TLS. Without a channel the main connection interface (mysql_main) is reconfigured; FOR CHANNEL is accepted from MySQL 8.0.21. On an error the server keeps the old context unless NO ROLLBACK ON ERROR is written. Source: https://dev.mysql.com/doc/refman/8.4/en/alter-instance.html.

Reloading the TLS context of the administrative interfacedoctest
$reload = (new \SqlSemantics\Platform\MySql\Semantics())->analyze('ALTER INSTANCE RELOAD TLS FOR CHANNEL mysql_admin NO ROLLBACK ON ERROR');
    [$reload->statement->action->channel?->value, $reload->statement->action->noRollbackOnError] // => ['mysql_admin', true]

Properties§

public Name|null $channel = null
public bool $noRollbackOnError = false

Methods§

public function __construct(
    public Name|null $channel = null,
    public bool $noRollbackOnError = false,
)

Parameters

$channelName|nullThe channel of FOR CHANNEL, when written
$noRollbackOnErrorboolWhether NO ROLLBACK ON ERROR is written
public function render(Output $out): void

Writes the action.

Parameters

$outOutput
Calls 2

Test cases 2§

Test cases that cover or call this symbol, from the coverage report and from the analyzed test sources.

Dedicated tests 1
Other tests reaching this symbol 1

Relations§

Instantiated in 1