FAQ - DB Host and DB Port

DB Host and DB Port

20.01.2016 5462


Possible DB_HOST values

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 CompanyDB_HOST Value Guess
1and1db12345678
A2 Hostinglocalhost
AN Hostinglocalhost
Aruba.itlocalhost or real IP provided with activation mail.
A Small Orangelocalhost
AT&Txxxxxxxx.carrierzone.com full server name found in PHP MyAdmin.
BlueHostlocalhost
DreamHostmysql.example.com
GoDaddy - Shared and 4GH HostingIn 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 Hostinglocalhost
GoDaddy - Plesk HostingUse the IP address shown in the Databases Section in Plesk. Do not include :3306
HostGatorlocalhost
ICDSoftlocalhost:/tmp/mysql5.sock
Infomaniak Networkmysql.yourdomain
InMotion Hostinglocalhost
iPageusername.ipagemysql.com
IPowerusername.ipowermysql.com
Laughing Squidlocalhost
MediaTemple Gridinternal-db.s00000.gridserver.com - (Replace "00000" with the actual site number)
MediaTemple DVlocalhost
MegaHostlocalhost
NearlyFreeSpeech.Netusername.db
NetworkSolutionsmysqlv5
one.comexample.com.mysql
pair Networksdbnnnx.pair.com
QTH.comlocalhost
Rackspace Cloudlocalhost 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 Hostingdatapower.sysfix.eu
Site5localhost
Yahoomysql
Hosts with cPanellocalhost
Hosts with Plesklocalhost
Hosts with DirectAdminlocalhost
Tophost.itsql.your-domain-name.it

MySQL Alternate Port

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.