Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- var mysql = require('mysql');
- //[3] Connect to the Amazon RDS instance
- var connection = mysql.createConnection({
- host: 'classroomdb.ctl21frordby.us-east-2.rds.amazonaws.com',
- user: 'root',
- password: 'iamgroot',
- port: 3306,
- database: 'classroom',
- });
- connection.connect(function(err) {
- if (err) {
- console.log(err);
- } else {
- console.log('connected!');
- }
- connection.end();
- });
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement