Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ Requirements for Linux:

#### Currently supported MySQL versions

- If using the system installed MySQL server: 8.0.20 and newer
- If using the system installed MySQL server: 8.0.11 and newer
- If not using the system installed MySQL server: 8.0.39, 8.0.40, 8.1.0, 8.2.0, 8.3.0, 8.4.2, 8.4.3, 9.0.1, 9.1.0

## Example Usage - Application Code
Expand Down Expand Up @@ -112,11 +112,11 @@ Default: undefined
Description: Version of MySQL to use for the database. Uses semver for getting the version, so valid semver versions are allowed. For example, `8.x` is a valid version and will use the latest 8.x MySQL version.

If left undefined:
- If the system has MySQL installed, the system-installed version will be used. If the installed version is not supported by this package (currently <8.0.20), an error will be thrown unless `ignoreUnsupportedSystemVersion` is set to `true`.
- If the system has MySQL installed, the system-installed version will be used. If the installed version is not supported by this package (currently <8.0.11), an error will be thrown unless `ignoreUnsupportedSystemVersion` is set to `true`.
- If the system does not have MySQL installed, the latest version of MySQL in the `versions.json` file in this package will be downloaded.

If defined:
- If the version is 8.0.19 or older, an error will be thrown as this package does not currently support those versions of MySQL.
- If the version is older than 8.0.11, an error will be thrown as this package does not currently support those versions of MySQL.
- If the desired version of MySQL is installed on the system, the installed version will be used. Otherwise the selected version will be downloaded from the MySQL CDN as long as it can be found in the `versions.json` file. If it cannot be found in that file, an error will be thrown.

- `dbName: string`
Expand Down Expand Up @@ -179,7 +179,7 @@ Description: The port that the MySQL X Plugin will listen on. If set to 0, a ran

Default: false

Description: This option only applies if the system-installed MySQL version is lower than the oldest supported MySQL version for this package (8.0.20) and the `version` option is not defined. If set to `true`, this package will use the latest version of MySQL instead of the system-installed version. If `false`, the package will throw an error.
Description: This option only applies if the system-installed MySQL version is lower than the oldest supported MySQL version for this package (8.0.11) and the `version` option is not defined. If set to `true`, this package will use the latest version of MySQL instead of the system-installed version. If `false`, the package will throw an error.

- `downloadRetries: number`

Expand Down
2 changes: 1 addition & 1 deletion src/constants.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import {normalize as normalizePath} from 'path'
import { tmpdir } from "os";
import { valid as validSemver, coerce as coerceSemver } from "semver";

export const MIN_SUPPORTED_MYSQL = '8.0.20';
export const MIN_SUPPORTED_MYSQL = '8.0.11';

export const DEFAULT_OPTIONS_GENERATOR: () => InternalServerOptions = () => ({
version: undefined,
Expand Down
2 changes: 1 addition & 1 deletion src/libraries/Executor.ts
Original file line number Diff line number Diff line change
Expand Up @@ -302,7 +302,7 @@ class Executor {
stderr = result?.stderr
}

if (stderr && !stderr.includes('InnoDB initialization has ended')) {
if (stderr && !stderr.includes('is created with an empty password')) {
if (process.platform === 'win32' && stderr.includes('Command failed')) {
this.logger.error(stderr)
throw 'The mysqld command failed to run. A possible cause is that the Microsoft Visual C++ Redistributable Package is not installed. MySQL 5.7.40 and newer requires Microsoft Visual C++ Redistributable Package 2019 to be installed. Check the MySQL docs for Microsoft Visual C++ requirements for other MySQL versions. If you are sure you have this installed, check the error message in the console for more details.'
Expand Down
Loading