azure-docs
azure-docs copied to clipboard
Refer to mysql2 instead of mysql for Node.js
The Mysql npm package has not been updated in years. Consider referring to https://www.npmjs.com/package/mysql2 instead.
Source: https://learn.microsoft.com/en-us/azure/mysql/single-server/connect-nodejs
Document Details
⚠ Do not edit this section. It is required for learn.microsoft.com ➟ GitHub issue linking.
- ID: 42bb9b2a-7f06-bbd7-8c16-23f14171294d
- Version Independent ID: e52ff806-3afc-f644-395d-14d279060d38
- Content: Quickstart: Connect using Node.js - Azure Database for MySQL
- Content Source: articles/mysql/single-server/connect-nodejs.md
- Service: mysql
- Sub-service: single-server
- GitHub Login: @savjani
- Microsoft Alias: pariks
Seems like GitHub mobile got rid of the initial document details 🤔
@Zenulous
Thanks for your feedback! We will investigate and update as appropriate.
Hi @savjani,
Could you please look into this document update request for package update at the link: https://www.npmjs.com/package/mysql
Adding @shreyaaithal to validate and update the doc
FYI it's not like mysql is broken but after playing around with it this seems heavily outdated. For example mysql does not support promises and mysql2 does 😄
Thank you @Zenulous for the suggestion! The node.js quickstarts have been updated accordingly.
#please-close