MySQL initialization and connection helper for AdmiralCloud applications. Version 2.0.20 supports async/await (promise-based) queries via app.mysqlPromise and legacy callback-based queries via app.mysql. It is fully backwards compatible with version 1, supports AWS RDS SSL certificates, and integrates with app.config for database configuration. Released as part of the AdmiralCloud ecosystem, the package is actively maintained with CI/CD and CodeQL scanning. Key differentiator: it simplifies MySQL bootstrap and querying within the AdmiralCloud framework, providing both promise and callback interfaces.
npm install ac-bootstrap-mysqlNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Demonstrates initialization with async/await and running a simple SELECT query using the promise interface.
Use app.mysqlPromise with async/await instead.
Ensure ssl: 'Amazon RDS' is in the server config for RDS connections.
Set app.config.database with the required server array before calling acbMysql.
Use import acbMysql from 'ac-bootstrap-mysql' or const acbMysql = await import('ac-bootstrap-mysql').Always provide an error callback when using bootstrapping: true.
Ensure acbMysql(app) has resolved and that the server name matches exactly.
Verify MySQL is running and check app.config.database.servers[0].host and port.
Check user and password fields in app.config.database.servers[0].
Run 'npm install ac-bootstrap-mysql' and use ESM import syntax.