People new to MySQL and PHP sometimes do not know what their host name is for their MySQL database. In order to determine what your host name is for your MySQL database, go to the main page of phpMyAdmin. phpMyAdmin should be accessible through the control panel of your webhost when you log in. The host name appears near the top left of the main window in bolded letters.

Here are some examples showing you what the name of your webhost is:

  • In this example, the host name is “localhost”
    MySQL host name, example #1
  • In this example, the host name is “mysql.sutoyo.com”
    MySQL host name, example #2