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
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.`;
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.';
throw'The mysqld command failed to run. MySQL needs the libaio package installed on Linux systems to run. Do you have this installed? Learn more at https://dev.mysql.com/doc/refman/en/binary-installation.html';
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';
333
+
}
334
+
if(retry===false){
335
+
this.logger.error('An error occurred while initializing database:',stderr);
336
+
throw'Tried to copy libaio into lib folder and MySQL is still failing to initialize. Please check the console for more information.';
this.logger.error('The following libaio error occurred:',stderr);
342
+
this.logger.error('After the libaio error, an ldconfig error occurred:',lderror||ldstderr);
343
+
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';
this.logger.error('Error from launching MySQL:',stderr);
348
+
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.';
this.logger.error('An error occurred from locking libaio section:',error);
396
+
throwerror;
397
+
}
398
+
}
399
+
else{
400
+
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';
401
+
}
305
402
}
306
-
throwerr||stderr;
403
+
throwstderr;
307
404
}
405
+
this.logger.log('Creating init text');
308
406
letinitText=`CREATE DATABASE ${options.dbName};`;
309
407
if(options.username!=='root'){
310
408
initText+=`\nRENAME USER 'root'@'localhost' TO '${options.username}'@'localhost';`;
0 commit comments