NodeJS MySQL integration
Connect to MySQL
One of the easiest ways to connect to MySQL is by using mysql module. This module handles the connection between Node.js app and MySQL server. You can install it like any other module:
Now you have to create a mysql connection, which you can later query.
In the next example you will learn how to query the connection object.