You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: src/index.ts
+6-6Lines changed: 6 additions & 6 deletions
Original file line number
Diff line number
Diff line change
@@ -49,12 +49,6 @@ export async function createDB(opts?: ServerOptions) {
49
49
throw`A version of MySQL is installed on your system that is not supported by this package. If you want to download a MySQL binary instead of getting this error, please set the option "ignoreUnsupportedSystemVersion" to true.`
@@ -70,6 +64,12 @@ export async function createDB(opts?: ServerOptions) {
70
64
throw`A MySQL binary could not be found that supports your OS (${os.platform()} | ${os.version()} | ${os.release()}) and CPU architecture (${os.arch()}). Please check you have the latest version of mysql-memory-server. If the latest version still doesn't support your OS and CPU architecture, feel free to make a pull request to add support!`
71
65
}
72
66
67
+
if(lt(binaryInfo.version,MIN_SUPPORTED_MYSQL)){
68
+
//The difference between the throw here and the throw above is this throw is because the selected "version" is not supported.
69
+
//The throw above is because the system-installed MySQL is out of date and "ignoreUnsupportedSystemVersion" is not set to true.
70
+
throw`The selected version of MySQL (${options.version}) is not currently supported by this package. Please choose a different version to use.`
0 commit comments