We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 74d4f57 commit 4e6462cCopy full SHA for 4e6462c
src/MySQLReplication/Repository/MySQLRepository.php
@@ -70,8 +70,14 @@ public function getVersion(): string
70
71
public function getMasterStatus(): MasterStatusDTO
72
{
73
+ $query = 'SHOW MASTER STATUS';
74
+
75
+ if (str_starts_with($this->getVersion(), '8.4')) {
76
+ $query = 'SHOW BINARY LOG STATUS';
77
+ }
78
79
$data = $this->getConnection()
- ->fetchAssociative('SHOW MASTER STATUS');
80
+ ->fetchAssociative($query);
81
if (empty($data)) {
82
throw new BinLogException(
83
MySQLReplicationException::BINLOG_NOT_ENABLED,
0 commit comments