Skip to content

Commit 5377c8d

Browse files
add X Plugin startup checks for MySQL 8.0.4 - 8.0.12
1 parent 7cc1525 commit 5377c8d

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/libraries/Executor.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import { ChildProcess, execFile, spawn } from "child_process"
2-
import {coerce, gte, lt, satisfies} from 'semver';
2+
import {coerce, gte, lt, lte, satisfies} from 'semver';
33
import * as os from 'os'
44
import * as fsPromises from 'fs/promises';
55
import * as fs from 'fs';
@@ -220,7 +220,7 @@ class Executor {
220220
return //Promise rejection will be handled in the process.on('close') section because this.killedFromPortIssue is being set to true
221221
}
222222

223-
const xStartedSuccessfully = file.includes('X Plugin ready for connections') || file.includes("mysqlx reported: 'Server starts handling incoming connections'")
223+
const xStartedSuccessfully = file.includes('X Plugin ready for connections') || file.includes("mysqlx reported: 'Server starts handling incoming connections'") || (lte(this.version, '8.0.12') && gte(this.version, '8.0.4') && !file.search(/\[ERROR\].*Plugin mysqlx reported/m))
224224

225225
if (options.xEnabled === 'FORCE' && !xStartedSuccessfully) {
226226
this.logger.error('Error file:', file)

0 commit comments

Comments
 (0)