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 yourdomain.com and press tab.

Leave Subdomain blank.

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

Press Add Domain.  Done.

Link: https://gator820.hostgator.com:XXXX/ < will be specific once you have an account

Cost: Included in hosting

Time: 2 minutes