Skip to content
MySQL Connector Node.JS is a MySQL Connector using the X Protocol, which was introduced with MySQL 5.7.12.
JavaScript
Branch: master
Clone or download

README.md

MySQL Connector/Node.js

Languages License: GPLv2 with FOSS exception npm

MySQL Connector/Node.js is a MySQL 8 driver for Node.js officially supported and maintained by Oracle. It contains an implementation of the X DevAPI, an Application Programming Interface for working with the MySQL Document Store through CRUD-based, NoSQL operations.

For detailed information, please visit the official MySQL Connector/Node.js documentation.

Licensing

Please refer to the README.txt and LICENSE files, available in this repository, for further details.

Getting the Latest Release

MySQL Connector/Node.js is free for usage under the terms of the specified licensing and it runs on any Operating System that supports a Node.js 4.2.0 (or higher) runtime. Packages can and should be installed in your project using the npm CLI.

Since releases do NOT follow Semantic Versioning rules, it is advised to install a specific version of the package (the latest preferably) or by using an additional standard lockfile such as npm-shrinkwrap.json or package-lock.json depending on the version of the npm CLI you are using.

Installing from the npm registry

The recommended way for installing MySQL Connector/Node.js is by using the npm registry directly. That can be done by running following command in the project root directory:

$ npm install @mysql/xdevapi --save --save-exact

Downloading and Installing manually

Alternatively, MySQL Connector/Node.js tarballs are also available in the official download page. To install the package you can run the following command in the project root directory:

$ npm install /path/to/mysql-connector-nodejs-<version>.tar.gz --save --save-exact

GitHub Repository

The GitHub repository contains the MySQL Connector/Node.js source code as per the latest release. No changes are published in the repository between releases.

Contributing

There are a few ways to contribute to the Connector/Node.js code. Please refer to the contributing guidelines for additional information.

Additional Resources

For more information about this and other MySQL products, please visit MySQL Contact & Questions.

Follow MySQL on Twitter

You can’t perform that action at this time.