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
this.logger.error('Error occurred from executeFile:',e)
318
-
throwe
319
-
}
320
-
stderr=result?.stderr
307
+
if(error){
308
+
this.logger.error('An error occurred while initializing database with the ',binary.installedOnSystem ? 'system-installed MySQL binary:' : 'downloaded MySQL binary:',error)
309
+
throw`An error occurred while initializing the MySQL database: ${error}`
321
310
}
322
311
323
312
if(stderr&&!stderr.includes('is created with an empty password')){
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://dev.mysql.com/doc/refman/en/binary-installation.html'
332
-
}
333
-
334
319
if(retry===false){
335
320
this.logger.error('An error occurred while initializing database:',stderr)
336
321
throw'Tried to copy libaio into lib folder and MySQL is still failing to initialize. Please check the console for more information.'
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://dev.mysql.com/doc/refman/en/binary-installation.html'
326
+
}
327
+
328
+
// 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
this.logger.error('The following libaio error occurred:',stderr)
343
334
this.logger.error('After the libaio error, an ldconfig error occurred:',lderror||ldstderr)
344
-
throw'The ldconfig command failed to run. This command was ran to find libaio because libaio could not be found on the system. libaio is needed for MySQL to run. Do you have ldconfig and libaio installed? Learn more about libaio at Learn more at https://dev.mysql.com/doc/refman/en/binary-installation.html'
335
+
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://dev.mysql.com/doc/refman/en/binary-installation.html'
this.logger.error('Error from launching MySQL:',stderr)
349
-
throw'An error occurred while launching MySQL. The most likely cause is that libaio1 and libaio1t64 could not be found. Either libaio1 or libaio1t64 must be installed on this system for MySQL to run. To learn more, please check out https://dev.mysql.com/doc/refman/en/binary-installation.html. Check error in console for more information.'
340
+
this.logger.error('Could not find libaio1t64 in this list:',libaioFound)
341
+
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://dev.mysql.com/doc/refman/en/binary-installation.html. Check error in console for more information.'
350
342
}
351
343
constlibaioEntry=libaioFound[0]
352
344
constlibaioPathIndex=libaioEntry.indexOf('=>')
@@ -417,17 +409,17 @@ class Executor {
417
409
if(copyError){
418
410
throw'An error occurred while copying libaio1t64 to the MySQL lib folder. Please check the console for more details.'
419
411
}
420
-
421
-
//Retry setting up directory now that libaio has been copied
throw'Cannot recognize file structure for the MySQL binary folder. This was caused by not being able to find libaio. Try installing libaio. Learn more at https://dev.mysql.com/doc/refman/en/binary-installation.html'
414
+
415
+
//Retry setting up directory now that libaio has been copied
throw'You do not have libaio1 installed. Please install the libaio1 package for the downloaded MySQL binary to run. Learn more here: https://dev.mysql.com/doc/refman/en/binary-installation.html'
0 commit comments