mysql-memory-server 1.15.0 → 1.16.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +4 -4
- package/dist/src/constants.d.ts +13 -13
- package/dist/src/constants.js +14 -13
- package/dist/src/libraries/Executor.js +5 -5
- package/package.json +2 -2
package/README.md
CHANGED
|
@@ -15,9 +15,9 @@ Download with your package manager of choice. The package name is `mysql-memory-
|
|
|
15
15
|
#### Currently supported MySQL versions
|
|
16
16
|
|
|
17
17
|
- ```mysql-memory-server``` can run MySQL versions 5.7.19 and newer (if the version is already installed on your system)
|
|
18
|
-
- ```mysql-memory-server``` can download and run MySQL versions (inclusive) 5.7.19 - 5.7.44, 8.0.0 - 8.0.45, 8.1.0 - 8.4.11,
|
|
18
|
+
- ```mysql-memory-server``` can download and run MySQL versions (inclusive) 5.7.19 - 5.7.44, 8.0.0 - 8.0.45, 8.1.0 - 8.4.11, 9.0.1 - 9.7.2, and 26.7.0 (if the version is not already installed on your system)
|
|
19
19
|
|
|
20
|
-
Extra system requirements apply when ```mysql-memory-server``` is downloading MySQL instead of running a version of MySQL that is already installed on the system. To see the requirements and learn more about the supported versions for download, [read the doc](https://github.com/Sebastian-Webster/mysql-memory-server-nodejs/blob/v1.
|
|
20
|
+
Extra system requirements apply when ```mysql-memory-server``` is downloading MySQL instead of running a version of MySQL that is already installed on the system. To see the requirements and learn more about the supported versions for download, [read the doc](https://github.com/Sebastian-Webster/mysql-memory-server-nodejs/blob/v1.16.0/docs/SUPPORTED_MYSQL_DOWNLOADS.md)
|
|
21
21
|
|
|
22
22
|
## Example Usage - Application Code
|
|
23
23
|
|
|
@@ -102,11 +102,11 @@ Description: Version of MySQL to use for the database. Uses semver for getting t
|
|
|
102
102
|
|
|
103
103
|
If left undefined:
|
|
104
104
|
- If the system has MySQL installed, the system-installed version will be used. If the installed version is not supported by this package (currently <5.7.19), an error will be thrown unless `ignoreUnsupportedSystemVersion` is set to `true`.
|
|
105
|
-
- If the system does not have MySQL installed, the latest version of MySQL that [this package supports downloading](https://github.com/Sebastian-Webster/mysql-memory-server-nodejs/blob/v1.
|
|
105
|
+
- If the system does not have MySQL installed, the latest version of MySQL that [this package supports downloading](https://github.com/Sebastian-Webster/mysql-memory-server-nodejs/blob/v1.16.0/docs/SUPPORTED_MYSQL_DOWNLOADS.md) will be downloaded.
|
|
106
106
|
|
|
107
107
|
If defined:
|
|
108
108
|
- If the version is older than 5.7.19, an error will be thrown as this package does not currently support those versions of MySQL.
|
|
109
|
-
- If the desired version of MySQL is already installed on the system, the installed version will be used. Otherwise the selected version will be downloaded as long as this package [supports downloading it](https://github.com/Sebastian-Webster/mysql-memory-server-nodejs/blob/v1.
|
|
109
|
+
- If the desired version of MySQL is already installed on the system, the installed version will be used. Otherwise the selected version will be downloaded as long as this package [supports downloading it](https://github.com/Sebastian-Webster/mysql-memory-server-nodejs/blob/v1.16.0/docs/SUPPORTED_MYSQL_DOWNLOADS.md). If this package does not support downloading the selected version, or your system does not [meet the requirements](https://github.com/Sebastian-Webster/mysql-memory-server-nodejs/blob/v1.16.0/docs/SUPPORTED_MYSQL_DOWNLOADS.md) for that version to be ran, an error will be thrown.
|
|
110
110
|
|
|
111
111
|
- `dbName: string`
|
|
112
112
|
|
package/dist/src/constants.d.ts
CHANGED
|
@@ -15,18 +15,18 @@ export declare const OPTION_TYPE_CHECKS: OptionTypeChecks;
|
|
|
15
15
|
export declare const MIN_SUPPORTED_MYSQL = "5.7.19";
|
|
16
16
|
export declare const MySQLCDNDownloadsBaseURL = "https://cdn.mysql.com//Downloads/MySQL-";
|
|
17
17
|
export declare const MySQLCDNArchivesBaseURL = "https://cdn.mysql.com/archives/mysql-";
|
|
18
|
-
export declare const DOWNLOADABLE_MYSQL_VERSIONS: readonly ['5.7.19', '5.7.20', '5.7.21', '5.7.22', '5.7.23', '5.7.24', '5.7.25', '5.7.26', '5.7.27', '5.7.28', '5.7.29', '5.7.30', '5.7.31', '5.7.32', '5.7.33', '5.7.34', '5.7.35', '5.7.36', '5.7.37', '5.7.38', '5.7.39', '5.7.40', '5.7.41', '5.7.42', '5.7.43', '5.7.44', '8.0.0', '8.0.1', '8.0.2', '8.0.3', '8.0.4', '8.0.11', '8.0.12', '8.0.13', '8.0.14', '8.0.15', '8.0.16', '8.0.17', '8.0.18', '8.0.19', '8.0.20', '8.0.21', '8.0.22', '8.0.23', '8.0.24', '8.0.25', '8.0.26', '8.0.27', '8.0.28', '8.0.30', '8.0.31', '8.0.32', '8.0.33', '8.0.34', '8.0.35', '8.0.36', '8.0.37', '8.0.39', '8.0.40', '8.0.41', '8.0.42', '8.0.43', '8.0.44', '8.0.45', '8.1.0', '8.2.0', '8.3.0', '8.4.0', '8.4.2', '8.4.3', '8.4.4', '8.4.5', '8.4.6', '8.4.7', '8.4.8', '8.4.9', '8.4.10', '8.4.11', '9.0.1', '9.1.0', '9.2.0', '9.3.0', '9.4.0', '9.5.0', '9.6.0', '9.7.0', '9.7.1', '9.7.2'];
|
|
18
|
+
export declare const DOWNLOADABLE_MYSQL_VERSIONS: readonly ['5.7.19', '5.7.20', '5.7.21', '5.7.22', '5.7.23', '5.7.24', '5.7.25', '5.7.26', '5.7.27', '5.7.28', '5.7.29', '5.7.30', '5.7.31', '5.7.32', '5.7.33', '5.7.34', '5.7.35', '5.7.36', '5.7.37', '5.7.38', '5.7.39', '5.7.40', '5.7.41', '5.7.42', '5.7.43', '5.7.44', '8.0.0', '8.0.1', '8.0.2', '8.0.3', '8.0.4', '8.0.11', '8.0.12', '8.0.13', '8.0.14', '8.0.15', '8.0.16', '8.0.17', '8.0.18', '8.0.19', '8.0.20', '8.0.21', '8.0.22', '8.0.23', '8.0.24', '8.0.25', '8.0.26', '8.0.27', '8.0.28', '8.0.30', '8.0.31', '8.0.32', '8.0.33', '8.0.34', '8.0.35', '8.0.36', '8.0.37', '8.0.39', '8.0.40', '8.0.41', '8.0.42', '8.0.43', '8.0.44', '8.0.45', '8.1.0', '8.2.0', '8.3.0', '8.4.0', '8.4.2', '8.4.3', '8.4.4', '8.4.5', '8.4.6', '8.4.7', '8.4.8', '8.4.9', '8.4.10', '8.4.11', '9.0.1', '9.1.0', '9.2.0', '9.3.0', '9.4.0', '9.5.0', '9.6.0', '9.7.0', '9.7.1', '9.7.2', '26.7.0'];
|
|
19
19
|
export declare const MYSQL_ARCH_SUPPORT: {
|
|
20
20
|
readonly darwin: {
|
|
21
|
-
readonly arm64: '8.0.26 -
|
|
22
|
-
readonly x64: '5.7.19 -
|
|
21
|
+
readonly arm64: '8.0.26 - 26.7.0';
|
|
22
|
+
readonly x64: '5.7.19 - 26.7.0';
|
|
23
23
|
};
|
|
24
24
|
readonly linux: {
|
|
25
|
-
readonly arm64: '8.0.31 -
|
|
26
|
-
readonly x64: '5.7.19 -
|
|
25
|
+
readonly arm64: '8.0.31 - 26.7.0';
|
|
26
|
+
readonly x64: '5.7.19 - 26.7.0';
|
|
27
27
|
};
|
|
28
28
|
readonly win32: {
|
|
29
|
-
readonly x64: '5.7.19 -
|
|
29
|
+
readonly x64: '5.7.19 - 26.7.0';
|
|
30
30
|
readonly arm64: '0.0.0';
|
|
31
31
|
};
|
|
32
32
|
};
|
|
@@ -46,7 +46,7 @@ export declare const MYSQL_MIN_OS_SUPPORT: {
|
|
|
46
46
|
readonly '8.0.28 - 8.0.31': '20.0.0';
|
|
47
47
|
readonly '8.0.32 - 8.0.34': '21.0.0';
|
|
48
48
|
readonly '8.0.35 - 8.0.39 || 8.1.0 - 8.4.2 || 9.0.1': '22.0.0';
|
|
49
|
-
readonly '8.0.40 - 8.0.45 || 8.4.3 - 8.4.11 || 9.1.0 - 9.7.2': '23.0.0';
|
|
49
|
+
readonly '8.0.40 - 8.0.45 || 8.4.3 - 8.4.11 || 9.1.0 - 9.7.2 || 26.7.0': '23.0.0';
|
|
50
50
|
};
|
|
51
51
|
};
|
|
52
52
|
export declare const DMR_MYSQL_VERSIONS = "8.0.0 - 8.0.2";
|
|
@@ -61,34 +61,34 @@ export declare const MYSQL_MACOS_VERSIONS_IN_FILENAME: {
|
|
|
61
61
|
readonly '8.0.30 - 8.0.31': 'macos12';
|
|
62
62
|
readonly '8.0.32 - 8.0.35 || 8.1.0 - 8.2.0': 'macos13';
|
|
63
63
|
readonly '8.0.36 - 8.0.40 || 8.3.0 - 8.4.3 || 9.0.1 - 9.1.0': 'macos14';
|
|
64
|
-
readonly '8.0.41 - 8.0.45 || 8.4.4 - 8.4.11 || 9.2.0 - 9.7.2': 'macos15';
|
|
64
|
+
readonly '8.0.41 - 8.0.45 || 8.4.4 - 8.4.11 || 9.2.0 - 9.7.2 || 26.7.0': 'macos15';
|
|
65
65
|
};
|
|
66
66
|
export declare const MYSQL_LINUX_GLIBC_VERSIONS: {
|
|
67
67
|
readonly x64: {
|
|
68
68
|
readonly '5.7.19 - 8.0.20': '2.12';
|
|
69
69
|
readonly '8.0.21 - 8.4.10 || 9.0.1 - 9.5.0': '2.17';
|
|
70
|
-
readonly '8.4.11 || 9.6.0 - 9.7.2': '2.28';
|
|
70
|
+
readonly '8.4.11 || 9.6.0 - 9.7.2 || 26.7.0': '2.28';
|
|
71
71
|
};
|
|
72
72
|
readonly arm64: {
|
|
73
73
|
readonly '5.7.19 - 8.0.20': '2.12';
|
|
74
74
|
readonly '8.0.21 - 8.0.41 || 8.1.0 - 8.4.4 || 9.0.1 - 9.2.0': '2.17';
|
|
75
|
-
readonly '8.0.42 - 8.0.45 || 8.4.5 - 8.4.11 || 9.3.0 - 9.7.2': '2.28';
|
|
75
|
+
readonly '8.0.42 - 8.0.45 || 8.4.5 - 8.4.11 || 9.3.0 - 9.7.2 || 26.7.0': '2.28';
|
|
76
76
|
};
|
|
77
77
|
};
|
|
78
78
|
export declare const MYSQL_LINUX_MINIMAL_INSTALL_AVAILABLE: {
|
|
79
79
|
readonly '5.7.19 - 8.0.15': 'no';
|
|
80
80
|
readonly '8.0.16 - 8.0.20': 'no-glibc-tag';
|
|
81
|
-
readonly '8.0.21 -
|
|
81
|
+
readonly '8.0.21 - 26.7.0': 'glibc-tag';
|
|
82
82
|
};
|
|
83
83
|
export declare const MYSQL_LINUX_MINIMAL_INSTALL_AVAILABLE_ARM64 = "8.0.33 - 8.0.41 || 8.1.0 - 8.4.4 || 9.0.1 - 9.2.0";
|
|
84
84
|
export declare const MYSQL_LINUX_FILE_EXTENSIONS: {
|
|
85
85
|
readonly x64: {
|
|
86
86
|
readonly '5.7.19 - 8.0.11': 'gz';
|
|
87
|
-
readonly '8.0.12 -
|
|
87
|
+
readonly '8.0.12 - 26.7.0': 'xz';
|
|
88
88
|
};
|
|
89
89
|
readonly arm64: {
|
|
90
90
|
readonly '8.0.31 - 8.0.32': 'gz';
|
|
91
|
-
readonly '8.0.33 -
|
|
91
|
+
readonly '8.0.33 - 26.7.0': 'xz';
|
|
92
92
|
};
|
|
93
93
|
};
|
|
94
94
|
export declare const MYSQL_LINUX_MINIMAL_REBUILD_VERSIONS = "8.0.26";
|
package/dist/src/constants.js
CHANGED
|
@@ -130,19 +130,20 @@ exports.DOWNLOADABLE_MYSQL_VERSIONS = [
|
|
|
130
130
|
'8.1.0', '8.2.0', '8.3.0',
|
|
131
131
|
'8.4.0', '8.4.2', '8.4.3', '8.4.4', '8.4.5', '8.4.6', '8.4.7', '8.4.8', '8.4.9', '8.4.10', '8.4.11',
|
|
132
132
|
'9.0.1', '9.1.0', '9.2.0', '9.3.0', '9.4.0', '9.5.0', '9.6.0',
|
|
133
|
-
'9.7.0', '9.7.1', '9.7.2'
|
|
133
|
+
'9.7.0', '9.7.1', '9.7.2',
|
|
134
|
+
'26.7.0'
|
|
134
135
|
];
|
|
135
136
|
exports.MYSQL_ARCH_SUPPORT = {
|
|
136
137
|
darwin: {
|
|
137
|
-
arm64: '8.0.26 -
|
|
138
|
-
x64: '5.7.19 -
|
|
138
|
+
arm64: '8.0.26 - 26.7.0',
|
|
139
|
+
x64: '5.7.19 - 26.7.0'
|
|
139
140
|
},
|
|
140
141
|
linux: {
|
|
141
|
-
arm64: '8.0.31 -
|
|
142
|
-
x64: '5.7.19 -
|
|
142
|
+
arm64: '8.0.31 - 26.7.0',
|
|
143
|
+
x64: '5.7.19 - 26.7.0'
|
|
143
144
|
},
|
|
144
145
|
win32: {
|
|
145
|
-
x64: '5.7.19 -
|
|
146
|
+
x64: '5.7.19 - 26.7.0',
|
|
146
147
|
arm64: '0.0.0' // There aren't any arm64 MySQL binaries for Windows on ARM provided by Oracle. As a result, this is set to 0.0.0 to indicate no support for arm64 on win32.
|
|
147
148
|
}
|
|
148
149
|
};
|
|
@@ -163,7 +164,7 @@ exports.MYSQL_MIN_OS_SUPPORT = {
|
|
|
163
164
|
'8.0.28 - 8.0.31': '20.0.0',
|
|
164
165
|
'8.0.32 - 8.0.34': '21.0.0',
|
|
165
166
|
'8.0.35 - 8.0.39 || 8.1.0 - 8.4.2 || 9.0.1': '22.0.0',
|
|
166
|
-
'8.0.40 - 8.0.45 || 8.4.3 - 8.4.11 || 9.1.0 - 9.7.2': '23.0.0'
|
|
167
|
+
'8.0.40 - 8.0.45 || 8.4.3 - 8.4.11 || 9.1.0 - 9.7.2 || 26.7.0': '23.0.0'
|
|
167
168
|
}
|
|
168
169
|
};
|
|
169
170
|
exports.DMR_MYSQL_VERSIONS = '8.0.0 - 8.0.2';
|
|
@@ -178,7 +179,7 @@ exports.MYSQL_MACOS_VERSIONS_IN_FILENAME = {
|
|
|
178
179
|
'8.0.30 - 8.0.31': 'macos12',
|
|
179
180
|
'8.0.32 - 8.0.35 || 8.1.0 - 8.2.0': 'macos13',
|
|
180
181
|
'8.0.36 - 8.0.40 || 8.3.0 - 8.4.3 || 9.0.1 - 9.1.0': 'macos14',
|
|
181
|
-
'8.0.41 - 8.0.45 || 8.4.4 - 8.4.11 || 9.2.0 - 9.7.2': 'macos15'
|
|
182
|
+
'8.0.41 - 8.0.45 || 8.4.4 - 8.4.11 || 9.2.0 - 9.7.2 || 26.7.0': 'macos15'
|
|
182
183
|
};
|
|
183
184
|
exports.MYSQL_LINUX_GLIBC_VERSIONS = {
|
|
184
185
|
//8.0.42 - 8.0.43, 8.4.5 - 8.4.6, and 9.3.0 - 9.4.0 with glibc 2.28 does NOT have a minimal install version for x64 but it DOES have arm64 support.
|
|
@@ -188,28 +189,28 @@ exports.MYSQL_LINUX_GLIBC_VERSIONS = {
|
|
|
188
189
|
x64: {
|
|
189
190
|
'5.7.19 - 8.0.20': '2.12',
|
|
190
191
|
'8.0.21 - 8.4.10 || 9.0.1 - 9.5.0': '2.17',
|
|
191
|
-
'8.4.11 || 9.6.0 - 9.7.2': '2.28'
|
|
192
|
+
'8.4.11 || 9.6.0 - 9.7.2 || 26.7.0': '2.28'
|
|
192
193
|
},
|
|
193
194
|
arm64: {
|
|
194
195
|
'5.7.19 - 8.0.20': '2.12',
|
|
195
196
|
'8.0.21 - 8.0.41 || 8.1.0 - 8.4.4 || 9.0.1 - 9.2.0': '2.17',
|
|
196
|
-
'8.0.42 - 8.0.45 || 8.4.5 - 8.4.11 || 9.3.0 - 9.7.2': '2.28'
|
|
197
|
+
'8.0.42 - 8.0.45 || 8.4.5 - 8.4.11 || 9.3.0 - 9.7.2 || 26.7.0': '2.28'
|
|
197
198
|
}
|
|
198
199
|
};
|
|
199
200
|
exports.MYSQL_LINUX_MINIMAL_INSTALL_AVAILABLE = {
|
|
200
201
|
'5.7.19 - 8.0.15': 'no',
|
|
201
202
|
'8.0.16 - 8.0.20': 'no-glibc-tag',
|
|
202
|
-
'8.0.21 -
|
|
203
|
+
'8.0.21 - 26.7.0': 'glibc-tag'
|
|
203
204
|
};
|
|
204
205
|
exports.MYSQL_LINUX_MINIMAL_INSTALL_AVAILABLE_ARM64 = '8.0.33 - 8.0.41 || 8.1.0 - 8.4.4 || 9.0.1 - 9.2.0'; //Not available for < 8.0.33 and >=8.0.42 <8.1.0, >=8.4.5 <8.5, and >=9.3.0 <10.0.0
|
|
205
206
|
exports.MYSQL_LINUX_FILE_EXTENSIONS = {
|
|
206
207
|
x64: {
|
|
207
208
|
'5.7.19 - 8.0.11': 'gz',
|
|
208
|
-
'8.0.12 -
|
|
209
|
+
'8.0.12 - 26.7.0': 'xz'
|
|
209
210
|
},
|
|
210
211
|
arm64: {
|
|
211
212
|
'8.0.31 - 8.0.32': 'gz',
|
|
212
|
-
'8.0.33 -
|
|
213
|
+
'8.0.33 - 26.7.0': 'xz'
|
|
213
214
|
}
|
|
214
215
|
};
|
|
215
216
|
exports.MYSQL_LINUX_MINIMAL_REBUILD_VERSIONS = '8.0.26';
|
|
@@ -363,7 +363,7 @@ _Executor_instances = new WeakSet(), _Executor_executeFile = function _Executor_
|
|
|
363
363
|
if (code) {
|
|
364
364
|
let errorMessage = '';
|
|
365
365
|
if (os.platform() === 'win32' && code === 3221225781) {
|
|
366
|
-
errorMessage = `The MySQL database exited early with code 3221225781. A possible cause is that the Microsoft Visual C++ Redistributable Package is not installed. Please refer to the following link for this package's requirements on your system - this may help solve this error: https://github.com/Sebastian-Webster/mysql-memory-server-nodejs/blob/v1.
|
|
366
|
+
errorMessage = `The MySQL database exited early with code 3221225781. A possible cause is that the Microsoft Visual C++ Redistributable Package is not installed. Please refer to the following link for this package's requirements on your system - this may help solve this error: https://github.com/Sebastian-Webster/mysql-memory-server-nodejs/blob/v1.16.0/docs/SUPPORTED_MYSQL_DOWNLOADS.md#required-dependencies. If you are sure you have this installed, check the following for more details: The error log was:\n${errorLog}\nThe error string was: "${errorString}".`;
|
|
367
367
|
}
|
|
368
368
|
else {
|
|
369
369
|
errorMessage = `The database exited early with code ${code}. The error log was:\n${errorLog}\nThe error string was: "${errorString}".`;
|
|
@@ -467,7 +467,7 @@ _Executor_instances = new WeakSet(), _Executor_executeFile = function _Executor_
|
|
|
467
467
|
throw 'Tried to copy libaio into lib folder and MySQL is still failing to initialize. Please check the console for more information.';
|
|
468
468
|
}
|
|
469
469
|
if (binary.installedOnSystem) {
|
|
470
|
-
throw 'libaio could not be found while running system-installed MySQL. libaio must be installed on this system for MySQL to run. To learn more, please check out https://github.com/Sebastian-Webster/mysql-memory-server-nodejs/blob/v1.
|
|
470
|
+
throw 'libaio could not be found while running system-installed MySQL. libaio must be installed on this system for MySQL to run. To learn more, please check out https://github.com/Sebastian-Webster/mysql-memory-server-nodejs/blob/v1.16.0/docs/SUPPORTED_MYSQL_DOWNLOADS.md#required-dependencies';
|
|
471
471
|
}
|
|
472
472
|
// If the below code is running, the version of MySQL that is trying to be executed was downloaded from the CDN by this package and libaio has not yet been attempted to be copied
|
|
473
473
|
if (LinuxOSRelease_1.default.NAME === 'Ubuntu' && typeof LinuxOSRelease_1.default.VERSION_ID === 'string' && LinuxOSRelease_1.default.VERSION_ID >= '24.04') {
|
|
@@ -475,13 +475,13 @@ _Executor_instances = new WeakSet(), _Executor_executeFile = function _Executor_
|
|
|
475
475
|
if (lderror || ldstderr) {
|
|
476
476
|
this.logger.error('The following libaio error occurred:', stderr);
|
|
477
477
|
this.logger.error('After the libaio error, an ldconfig error occurred:', lderror || ldstderr);
|
|
478
|
-
throw 'The ldconfig command failed to run. This command was ran to find libaio1t64 because libaio1t64 could not be found on the system. libaio1t64 is needed for MySQL to run. Do you have ldconfig and libaio1t64 installed? Learn more at https://github.com/Sebastian-Webster/mysql-memory-server-nodejs/blob/v1.
|
|
478
|
+
throw 'The ldconfig command failed to run. This command was ran to find libaio1t64 because libaio1t64 could not be found on the system. libaio1t64 is needed for MySQL to run. Do you have ldconfig and libaio1t64 installed? Learn more at https://github.com/Sebastian-Webster/mysql-memory-server-nodejs/blob/v1.16.0/docs/SUPPORTED_MYSQL_DOWNLOADS.md#required-dependencies';
|
|
479
479
|
}
|
|
480
480
|
const libaioFound = stdout.split('\n').filter(lib => lib.includes('libaio.so.1t64'));
|
|
481
481
|
if (!libaioFound.length) {
|
|
482
482
|
this.logger.error('Error from launching MySQL:', stderr);
|
|
483
483
|
this.logger.error('Could not find libaio1t64 in this list:', libaioFound);
|
|
484
|
-
throw 'An error occurred while launching MySQL because libaio1t64 is not installed on your system. Please install libaio1t64 and then use mysql-memory-server again. To learn more, please check out https://github.com/Sebastian-Webster/mysql-memory-server-nodejs/blob/v1.
|
|
484
|
+
throw 'An error occurred while launching MySQL because libaio1t64 is not installed on your system. Please install libaio1t64 and then use mysql-memory-server again. To learn more, please check out https://github.com/Sebastian-Webster/mysql-memory-server-nodejs/blob/v1.16.0/docs/SUPPORTED_MYSQL_DOWNLOADS.md#required-dependencies. Check error in console for more information.';
|
|
485
485
|
}
|
|
486
486
|
const libaioEntry = libaioFound[0];
|
|
487
487
|
const libaioPathIndex = libaioEntry.indexOf('=>');
|
|
@@ -555,7 +555,7 @@ _Executor_instances = new WeakSet(), _Executor_executeFile = function _Executor_
|
|
|
555
555
|
await __classPrivateFieldGet(this, _Executor_instances, "m", _Executor_setupDataDirectories).call(this, options, binary, datadir, false);
|
|
556
556
|
return;
|
|
557
557
|
}
|
|
558
|
-
throw 'You do not have libaio1 installed. Please install the libaio1 package for the downloaded MySQL binary to run. Learn more here: https://github.com/Sebastian-Webster/mysql-memory-server-nodejs/blob/v1.
|
|
558
|
+
throw 'You do not have libaio1 installed. Please install the libaio1 package for the downloaded MySQL binary to run. Learn more here: https://github.com/Sebastian-Webster/mysql-memory-server-nodejs/blob/v1.16.0/docs/SUPPORTED_MYSQL_DOWNLOADS.md#required-dependencies';
|
|
559
559
|
}
|
|
560
560
|
throw stderr;
|
|
561
561
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "mysql-memory-server",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.16.0",
|
|
4
4
|
"description": "Spin up an ephemeral MySQL database from your JavaScript code",
|
|
5
5
|
"main": "dist/src/index.js",
|
|
6
6
|
"types": "dist/src/index.d.ts",
|
|
@@ -30,7 +30,7 @@
|
|
|
30
30
|
"@types/node": "^26.2.0",
|
|
31
31
|
"@types/semver": "^7.8.0",
|
|
32
32
|
"jest": "^30.4.2",
|
|
33
|
-
"mysql2": "^3.23.
|
|
33
|
+
"mysql2": "^3.23.3",
|
|
34
34
|
"typescript": "^7.0.2"
|
|
35
35
|
},
|
|
36
36
|
"dependencies": {
|