Working with Databases
When it comes to the server-side, databases are very important. All the data that your applications need to store for future reference have to be stored somewhere. In this topic, you will learn how to use two of the most popular databases: MySQL and MongoDB.
Setting up Databases
In this section, we will work with two of the major database types present today. Before proceeding further, let's go through different ways in which we can connect with databases. There are two ways to connect with databases:
- Locally: When a database server is running on your machine.
- Remotely: When a database server is running on some other machine and you are accessing it through the internet.
You can have your database server running somewhere in the cloud and you can access it using a URL along with credentials. But for this section, let's set up both databases locally on the machine and let's connect to them using Node.js.
The installation...