You need to create the domain in hostgator, which sets up all database.   It’s easy to do in the Hostgator cPanel.

Domains > Addon Domains > enter your URL in the ‘New Domain Field’, such as and press tab.

Leave Subdomain blank.

Add “public_html/” in front of your domain in  the Document Root/ field.

Press Add Domain.  Done.

Link: < will be specific once you have an account

Cost: Included in hosting

Time: 2 minutes