Skip to Main Content
Beginning API Development with Node.js
book

Beginning API Development with Node.js

by Anthony Nandaa
July 2018
Beginner content levelBeginner
100 pages
2h 7m
English
Packt Publishing
Content preview from Beginning API Development with Node.js

Exercise 12: Setting up the Database

Let's go back to where we left off in the Exercise 11: Validating a Request of Chapter 2, Building the API – Part 1. In this example, we will be using MySQL as our database of choice. Make sure your machine is set up with MySQL and MySQL Workbench:

Use the Code/Lesson-3/exercise-a folder for your reference.
  1. Open MySQL Workbench. Click on the + button to create a connection:
  1. Add the connection name as packt, username as root, and the password (if any). Click on Test Connection to see if the connection is correct, then click on OK:
  1. Click on OK to create the connection.
  1. Now, click on the connection, ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

Pro REST API Development with Node.js

Pro REST API Development with Node.js

Fernando Doglio
Building APIs with Node.js

Building APIs with Node.js

Caio Ribeiro Pereira
Learning Node.js

Learning Node.js

Marc Wandschneider

Publisher Resources

ISBN: 9781789539660Supplemental Content