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: README.md
+4-7Lines changed: 4 additions & 7 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -11,14 +11,15 @@ Download with your package manager of choice. The package name is `mysql-memory-
11
11
#### Requirements
12
12
13
13
- Node.js 16.6.0 and newer
14
-
- macOS 13+, Windows, or Linux (Only Ubuntu has been tested. Other Linux distributions may or may not work at this time. Ubuntu 24.04 and newer is not fully supported at this time - go to the bottom of this file to learn more)
14
+
- macOS 13+, Windows, or Linux (Only Ubuntu has been tested. Other Linux distributions may or may not work at this time.)
15
15
16
16
Windows only requirements:
17
17
-`Microsoft Visual C++ 2019 Redistributable Package` needs to be installed
18
18
19
19
Linux only requirements:
20
-
- The `libaio1` package needs to be installed
21
-
- The `tar` package needs to be installed
20
+
- The `libaio1` or `libaio1t64` package needs to be installed
21
+
- If `libaio1` is not available but `libaio1t64` is, the `ldconfig` command needs to be available to run
22
+
- The `tar` package needs to be installed if you want to use MySQL versions that aren't system installed
22
23
23
24
Currently supported MySQL versions:
24
25
- If using the system installed MySQL server: 8.0.20 and newer
@@ -169,7 +170,3 @@ Default: `TMPDIR/mysqlmsn/dbs/UUID` (replacing TMPDIR with the OS temp directory
169
170
Gotchas: This option is intended to be for internal debugging purposes only and not meant for people to use. As such, this option will not follow Semantic Versioning.
170
171
171
172
Description: The folder to store database-related data in
172
-
173
-
## If using Ubuntu 24.04 and newer
174
-
175
-
Selecting what MySQL version to use is not currently supported on Ubuntu 24.04 and newer. To use this package on Ubuntu 24.04 and newer you must have the `mysql-server` package installed on your system and `ServerOptions.version` must either be the version that is installed on the system or undefined.
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'
292
+
}
293
+
294
+
if(retry===false){
295
+
this.logger.error('An error occurred while initializing database:',stderr)
296
+
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)
303
+
this.logger.error('After the libaio error, an ldconfig error occurred:',lderror||ldstderr)
304
+
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)
309
+
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.'
if(String(error)==='Error: Lock file is already being held'){
356
+
this.logger.log('Waiting for lock for libaio copy')
357
+
awaitwaitForLock(copyPath,options)
358
+
this.logger.log('Lock is gone for libaio copy')
359
+
}
360
+
this.logger.error('An error occurred from locking libaio section:',error)
361
+
throwerror
362
+
}
363
+
}else{
364
+
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'
365
+
}
264
366
}
265
-
throwerr||stderr
367
+
throwstderr
266
368
}
267
369
370
+
this.logger.log('Creating init text')
371
+
268
372
letinitText=`CREATE DATABASE ${options.dbName};`;
269
373
270
374
if(options.username!=='root'){
271
375
initText+=`\nRENAME USER 'root'@'localhost' TO '${options.username}'@'localhost';`
0 commit comments