20.01.2016 5491
Different hosting companies use different network settings for their mysql databases. If your hosting company is listed below in the left column, the value on the right is similar to the correct value for DB_HOST. Contact your tech support and/or search your hosting companies online Documentation to be sure.
Hosting Company | DB_HOST Value Guess |
1and1 | db12345678 |
A2 Hosting | localhost |
AN Hosting | localhost |
Aruba.it | localhost or real IP provided with activation mail. |
A Small Orange | localhost |
AT&T | xxxxxxxx.carrierzone.com full server name found in PHP MyAdmin. |
BlueHost | localhost |
DreamHost | mysql.example.com |
GoDaddy - Shared and 4GH Hosting | In the Databases menu go to MySQL. To the right of the database name click on Actions and Details. The hostname is at the bottom of the window. |
GoDaddy - cPanel Hosting | localhost |
GoDaddy - Plesk Hosting | Use the IP address shown in the Databases Section in Plesk. Do not include :3306 |
HostGator | localhost |
ICDSoft | localhost:/tmp/mysql5.sock |
Infomaniak Network | mysql.yourdomain |
InMotion Hosting | localhost |
iPage | username.ipagemysql.com |
IPower | username.ipowermysql.com |
Laughing Squid | localhost |
MediaTemple Grid | internal-db.s00000.gridserver.com - (Replace "00000" with the actual site number) |
MediaTemple DV | localhost |
MegaHost | localhost |
NearlyFreeSpeech.Net | username.db |
NetworkSolutions | mysqlv5 |
one.com | example.com.mysql |
pair Networks | dbnnnx.pair.com |
QTH.com | localhost |
Rackspace Cloud | localhost for unmanaged servers, variable for Cloud Sites like mysqlXY-AB.wcN.dfQ.stabletransit.com where X,Y,A,B,N,Q are variables |
SysFix.eu Power Hosting | datapower.sysfix.eu |
Site5 | localhost |
Yahoo | mysql |
Hosts with cPanel | localhost |
Hosts with Plesk | localhost |
Hosts with DirectAdmin | localhost |
Tophost.it | sql.your-domain-name.it |
If your host uses an alternate port number for your database you'll need to change the DB_PORT value in the include/db.php file to reflect the alternate port provided by your host.
define('DB_PORT', '3306');
Replace 3306 with whatever port number your host gives you.