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
_DO_NOT_USE_beforeSignalCleanupMessage: '\nShutting down the ephemeral MySQL database and cleaning all related files...',
10
-
_DO_NOT_USE_afterSignalCleanupMessage: 'Shutdown and cleanup is complete.'
9
+
_DO_NOT_USE_cli: true
11
10
};
12
11
for(constoptofdefinedOptions){
13
12
constindex=process.argv.indexOf(opt);
@@ -41,7 +40,7 @@ async function main() {
41
40
}
42
41
console.log('Creating ephemeral MySQL database...');
43
42
constdb=await(0,index_1.createDB)(options);
44
-
console.log(`A MySQL database has been successfully created with the following parameters:\n\nUsername: ${db.username} \nDatabase Name: ${db.dbName} \nPort: ${db.port} \nX Plugin Port: ${db.xPort} \nSocket: ${db.socket} \nX Plugin Socket: ${db.xSocket}\n`);
43
+
console.log(`A MySQL database has been successfully created with the following parameters:\n\nMySQL Version: ${db.mysql.version} (${db.mysql.versionIsInstalledOnSystem ? 'installed on this system' : 'not installed on this system - downloaded from the MySQL CDN'}) \nUsername: ${db.username} \nDatabase Name: ${db.dbName} \nPort: ${db.port} \nX Plugin Port: ${db.xPort} \nSocket: ${db.socket} \nX Plugin Socket: ${db.xSocket}\n`);
45
44
if(process.platform==='win32'){
46
45
//The connection information logs will be different for Windows compared to other platforms.
47
46
//Windows uses mysqlsh instead of mysql to invoke the client shell, needs a --sql flag to be put into SQL mode, and also does not have a protocol flag.
throw`No MySQL binary could be found for your CPU architecture: ${process.arch}`;
43
+
throw`No MySQL binary could be found for your CPU architecture: ${options.arch}. ${process.platform==='win32'&&process.arch==='arm64' ? 'This package has detected you are running Windows on ARM. MySQL does not support Windows on ARM. To get this package working, please try setting the "arch" option to "x64".' : ''}`;
0 commit comments