Replication
class Replication (View source)
Replication helpers
Methods
string
extractDbOrTable(string $string, string $what = 'db')
Extracts database or table name from string
ResultInterface|false|int
replicaControl(string $action, string|null $control, ConnectionType $connectionType)
Configures replication replica
ResultInterface|false
replicaChangePrimary(string $user, string $password, string $host, int $port, array $pos, bool $stop, bool $start, ConnectionType $connectionType)
Changes primary for replication replica
Connection|null
connectToPrimary(string $user, string $password, string|null $host = null, int|null $port = null, string|null $socket = null)
This function provides connection to remote mysql server
array
replicaBinLogPrimary(ConnectionType $connectionType)
Fetches position and file of current binary log on primary
Details
__construct(DatabaseInterface $dbi)
No description
string
extractDbOrTable(string $string, string $what = 'db')
Extracts database or table name from string
ResultInterface|false|int
replicaControl(string $action, string|null $control, ConnectionType $connectionType)
Configures replication replica
ResultInterface|false
replicaChangePrimary(string $user, string $password, string $host, int $port, array $pos, bool $stop, bool $start, ConnectionType $connectionType)
Changes primary for replication replica
Connection|null
connectToPrimary(string $user, string $password, string|null $host = null, int|null $port = null, string|null $socket = null)
This function provides connection to remote mysql server
array
replicaBinLogPrimary(ConnectionType $connectionType)
Fetches position and file of current binary log on primary