“MySQL-Async” is not one product: the name covers three unrelated things — an npm package abandoned since 2018, a Lua resource for FiveM (GTA V) servers, and MySQL’s own built-in asynchrony. None of them makes your queries run in parallel by itself; concurrency comes from connections, measured below. Before you install anything, work out which you meant:
mysql-asyncon npm — a Node package last published 2018-10-23, with no README and no linked repository. Registry API, fetched 2026-08-11:{"downloads":2,…"package":"mysql-async"}for the week of 2026-08-03. The mainstream driver,mysql2, recorded14368420in the same week.mysql-asyncfor FiveM — a Lua resource for GTA V servers. That is whereMySQL.Async.fetchAll(…)comes from. GitHub API forbrouznouf/fivem-mysql-async: last push2023-03-06, and anopen_issues_countof 67 (GitHub counts pull requests in that figure). Its README says it wraps the samemysqljs/mysqllibrary.- Asynchrony in MySQL itself — asynchronous replication (the default), and the C API’s
_nonblockingfunctions. Neither has anything to do with the two packages above.
Table of Contents
Async syntax does not make queries run in parallel. Connections do.
The claim that “MySQL-Async eliminates the bottlenecks caused by blocking database calls, allowing your application to handle multiple requests simultaneously” is measurable. MySQL 8.4.10, three one-second queries, once down a single connection and once across three:
$ mysql -u root -e "SELECT SLEEP(1); SELECT SLEEP(1); SELECT SLEEP(1);"
real 0m3.238s
$ for i in 1 2 3; do mysql -u root -e "SELECT SLEEP(1);" & done; wait
real 0m1.084s
Three seconds against one. The server confirms why — during the second run, SELECT COUNT(*) FROM information_schema.PROCESSLIST WHERE INFO LIKE 'SELECT SLEEP%' returned 3, and the server is configured the way it is by default:
mysql> SHOW GLOBAL VARIABLES LIKE 'thread_handling';
thread_handling one-thread-per-connection
One connection is one server thread and one statement at a time. No client-side async/await changes that: awaiting three queries on one connection still serialises them. Concurrency comes from a pool with more than one connection in it — a property of every driver, not of anything called “async”. The timings above can be reproduced with a script that needs a local MySQL and skips cleanly without one; its registry checks skip without a network.
The mysql-async npm package cannot bind query parameters
This has security consequences. The advice “Always sanitize user inputs to prevent SQL injection attacks. Use parameterized queries for dynamic SQL.” is correct, but the mysql-async npm package cannot follow it. Its entire published API, read from the 1.1.0 tarball on registry.npmjs.org:
class Connection constructor(user, host, database, password)
IsConnected()
RowReturningQuery(sql)
InfoReturningQuery(sql)
class Pool / PoolConnection
GetConnection() Release() IsConnected()
RowReturningQuery(sql) InfoReturningQuery(sql)
Every query method takes one argument, the SQL string. There is no parameter to bind values to, so the only way to get a value into a query is string concatenation — the exact construction the advice above forbids. To use placeholders you would have to reach past the wrapper to the underlying mysql connection, at which point the wrapper is doing nothing for you.
Examples that call db.connect({host, user, password, database}), db.query(…) and db.createPool({…}) do not match that surface either. The published package.json declares "main": "api.js", and api.js is four lines long, in full:
exports.Connection = require('./connection.js').Connection;
exports.Pool = require('./pool.js').Pool;
exports.RowResult = require('./results.js').RowResult;
exports.InfoResult = require('./results.js').InfoResult;
Four exports, none of them connect, query or createPool. (createPool does appear inside pool.js — as a call into the underlying mysql package, not as something this module exposes.) Copying such examples produces a TypeError, not a database connection.
If you meant MySQL’s own asynchrony
Replication. MySQL 8.4 manual, verbatim: “Replication is asynchronous by default; replicas do not need to be connected permanently to receive updates from a source.” The alternative is opt-in: “In MySQL 8.4, semisynchronous replication is supported in addition to the built-in asynchronous replication. With semisynchronous replication, a commit performed on the source blocks before returning to the session that performed the transaction until at least one replica acknowledges that it has received and logged the events for the transaction.” On the stock 8.4.10 install here, SHOW VARIABLES LIKE 'rpl_semi_sync%' returns nothing and SELECT @@GLOBAL.rpl_semi_sync_source_enabled fails with ERROR 1193 (HY000): Unknown system variable — the variables do not exist until you install the component. That is the whole practical difference: asynchronous means a committed transaction can be lost if the source dies before a replica has it. I have no second machine here and did not measure replication lag, so this page quotes no lag figure. Be suspicious of any page that does without naming the hardware and the workload.
The client API. Real non-blocking MySQL client calls exist and are documented: “mysql_real_query_nonblocking() is an asynchronous function. It is the counterpart of the mysql_real_query() synchronous function, for use by applications that require asynchronous communication with the server”, returning “an enum net_async_status value” rather than an integer. Node drivers do not use these; they get their non-blocking behaviour from libuv and the event loop.
What to use
For Node, mysql2: actively published, promise API built in (require('mysql2/promise')), placeholder binding, and a pool. Size the pool deliberately — that number, not the word “async”, is what decides how many queries run at once. For FiveM specifically, compare brouznouf/fivem-mysql-async (last push 2023-03-06) against overextended/oxmysql (last push 2026-07-03) and pick on maintenance, both dates from the GitHub API on 2026-08-11.
To find the queries that are actually slow, see enabling the slow query log; for the same lesson applied to a different tool that promises free speed, see what MySQLTuner does and does not tell you.