Sunday, February 6, 2011

What hostname do I use to connect to my MySQL database?

To connect to your MySQL database using a PHP script, you will need the following information:

  • Database Name: The database ID would have been assigned at the time you created the database via phpMyAdmin in the Netfirms Control Panel.  It is typically d########.
  • Username: The username to your database would have been configured at the time you created the database via phpMyAdmin in the Netfirms Control Panel.  It is typically u#######.
  • Password: The password to your database would have been configured at the time you created the database via phpMyAdmin in the Netfirms Control Panel.
  • Hostname: The host name will be MYSQLHOST.

Please follow the steps below to obtain your database connection details:

  1. Login to your Control Panel.
  2. Click Hosting.
  3. Choose Databases.
  4. Click MySQL.
  5. Click on the “+” button beside the database.
  6. You will see all the connection details under the Connection tab.
  7.    netfirms.com   source