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
console.warn(`[ mysql-memory-server - Options WARN ]: Creating MySQL database with option ${opt}. This is considered unstable and should not be used externally. Please consider removing this option.`)
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.`
@@ -245,7 +245,7 @@ export function downloadBinary(binaryInfo: BinaryInfo, options: InternalServerOp
245
245
logger.error('An error occurred while deleting extractedPath and/or archivePath:',e)
246
246
}
247
247
248
-
if(downloadTries>=options.downloadRetries){
248
+
if(downloadTries>options.downloadRetries){
249
249
//Only reject if we have met the downloadRetries limit
250
250
try{
251
251
awaitreleaseFunction()
@@ -258,7 +258,7 @@ export function downloadBinary(binaryInfo: BinaryInfo, options: InternalServerOp
258
258
console.warn(`An error was encountered during the binary download process. Retrying for retry ${downloadTries}/${options.downloadRetries}. The error was:`,e)
259
259
}
260
260
}
261
-
}while(downloadTries<options.downloadRetries)
261
+
}while(downloadTries<=options.downloadRetries)
262
262
263
263
try{
264
264
releaseFunction()
@@ -292,14 +292,14 @@ export function downloadBinary(binaryInfo: BinaryInfo, options: InternalServerOp
292
292
logger.error('An error occurred while deleting extractedPath and/or archivePath:',e)
293
293
}
294
294
295
-
if(downloadTries>=options.downloadRetries){
295
+
if(downloadTries>options.downloadRetries){
296
296
//Only reject if we have met the downloadRetries limit
297
297
returnreject(e)
298
298
}else{
299
299
console.warn(`An error was encountered during the binary download process. Retrying for retry ${downloadTries}/${options.downloadRetries}. The error was:`,e)
returnreject(`MySQL failed to listen on a certain port. To restart MySQL with a different port, the database directory needed to be deleted. An error occurred while deleting the database directory. Aborting. The error was: ${e}`)
0 commit comments