
Research
/Security News
Toptal’s GitHub Organization Hijacked: 10 Malicious Packages Published
Threat actors hijacked Toptal’s GitHub org, publishing npm packages with malicious payloads that steal tokens and attempt to wipe victim systems.
ac-bootstrap-mysql
Advanced tools
Please use this script whenever you want to connect to our AdmiralCloud databases.
This new version supports async/await but is still fully backwards compatible. It supports the current AWS certificates.
Make sure the configuration is available at app.config (acapi.config):
const app = {
config: {
database: {
dataTimeFormat: 'YYYY-MM-DD HH:mm:ss',
servers: [
{
server: 'your_name_for_the_database',
host: 'localhost',
port: 3306,
user: 'your_user',
password: 'your_password',
ssl: 'Amazon RDS' // required on LIVE infrastructure, remove on local or DEV stage
}
]
}
}
}
Note: Usually host, user, password and ssl should come from a AWS secret! You can overwrite all values with a values from app.config.localDatabase.
Init during bootstrap:
await acbMysql(app)
// with callback
acbMysql(app, { bootstrapping: true }, err => {
...
})
If you use bootstrapping: true the callback function will return with an error, otherwise it will log an error and exit the process.
Now you have the database connection available using async/await or callback (deprecated). The with await use app.mysqlPromise, with callback use app.mysql.
const query = 'SELECT * FROM user WHERE id = 1'
const [ rows, fields ] = await app.mysqlPromise[your_name_for_the_database].query(query)
// with callback
app.mysql[your_name_for_the_database].query(query, (err, result) => {
//
})
2.0.9 (2025-03-30 18:22:40)
FAQs
Mysql init for AC apps
The npm package ac-bootstrap-mysql receives a total of 1 weekly downloads. As such, ac-bootstrap-mysql popularity was classified as not popular.
We found that ac-bootstrap-mysql demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Research
/Security News
Threat actors hijacked Toptal’s GitHub org, publishing npm packages with malicious payloads that steal tokens and attempt to wipe victim systems.
Research
/Security News
Socket researchers investigate 4 malicious npm and PyPI packages with 56,000+ downloads that install surveillance malware.
Security News
The ongoing npm phishing campaign escalates as attackers hijack the popular 'is' package, embedding malware in multiple versions.