How do I connect to a MySQL database in my web application?
<p>I would like to give a web application access to update and retrieve information from a MySQL database.  I have server space through HostGator and have created a sample MySQL database that I would like to access using via an npm package that facilitates using MySQL in a Node/express environment. I have created a database using HostGator's built in MySQL database wizard and have populated it using phpMyAdmin which is HostGator's database manager. How do I specify the location of this database to my application so that it can access it? The npm package I am using has a function to connect to a MySQL database given 'host', 'user', and 'password' parameters.  I know what the user and password data are, but what would the 'host' be?  I apologize if my question is vague, but I have not been able to find any useful information on this topic because I am unsure of exactly what to look for, so thanks in advance for your patience.</p>