How to Install mysql2 NPM Packages on Ubuntu / Debian

How to Install mysql2 software package in NPM Packages

mysql2 : fast mysql driver. Implements core protocol, prepared statements, ssl and compression in native JS. You can installing mysql2 npm packages, there are two ways to install this module locally and globaly. -g option is specified to global. Execute the below command.

$ sudo npm install mysql2
$ sudo npm install -g mysql2

If want to update the mysql2 package execute the command as below,

$ sudo npm update mysql2

Update package globally,

$ npm install -g mysql2

Git clone:

$ sudo  git clone https://github.com/rektide/mysql2.git
$ sudo  npm install -g ./mysql2

mysql2@1.5.1 /usr/lib/node_modules/mysql2

How to remove mysql2 package :

You can uninstall or remove this package from your node_modules run the command as below,

$ sudo npm uninstall mysql2

Basic Information of mysql2 NPM Package:

Package Name mysql2
Version 1.5.1
Description fast mysql driver. Implements core protocol, prepared statements, ssl and compression in native JS
Released Date 2017-11-19T04:34:43.761Z
Published by sidorares
How to Learn https://www.npmjs.com/package/mysql2/tutorial