Frequently Asked Questions

What server should I use in my code to connect to my database?

Print this Article
Comment on this Article
Last Updated: January 24, 2012 11:02 AM

Do not use "localhost" as the hostname (or database server) for your database-driven websites. Once you have successfully created a database, your host name displays on the Database Information page of your Hosting Control Center.

Note: This process is for Shared Hosting ONLY.

To Find the Host Name for Your Database

  1. Log in to your Account Manager.
  2. Click Web Hosting.
  3. Next to the hosting account you want to use, click Launch.
  4. In the Databases section of the Hosting Control Center, click the icon for the type of database you're interested in.
  5. From your list of databases, click the Pencil icon next to the database you want more information about.
  6. The Database Information page displays. You will find the host name for your database on this page.