localhost

amplec

New Member
Messages
9
Reaction score
0
Points
0
can anyone tell me what is my localhost or where can i get the name of my localhost. Plz, reply urgently.
 

slacker3

New Member
Messages
146
Reaction score
6
Points
0
localhost is your own box and has usually the ip 127.0.0.1
(loopback address)
 

amplec

New Member
Messages
9
Reaction score
0
Points
0
I need the mysql localhost.

This is example of another site:

<?php
/*This page is solely for the database conection.*/
DEFINE('DB_DETAILS', true);
DEFINE('DB_HOST', "sql213.0fees.net");
DEFINE('DB_USER', "fees0_4950895");
DEFINE('DB_PASS', "*******");
DEFINE('DB_NAME', "fees0_4950895_myptc");
?>
 
Last edited:

slacker3

New Member
Messages
146
Reaction score
6
Points
0
if you want to connect to an sql database you have to use an FQDN
( http://en.wikipedia.org/wiki/Fully_qualified_domain_name ) or IP address, which should appear in cpanel


( http://en.wikipedia.org/wiki/Localhost )

PHP:
<?php
/*This page is solely for the database conection.*/
DEFINE('DB_DETAILS', true);
DEFINE('DB_HOST', "sql213.0fees.net");
DEFINE('DB_USER', "fees0_4950895");
DEFINE('DB_PASS', "*******");
DEFINE('DB_NAME', "fees0_4950895_myptc");
?>

sql213.0fees.net would be the fqdn of the sql server
(ping sql213.0fees.net to get it's ip address)
 
Last edited:

Livewire

Abuse Compliance Officer
Staff member
Messages
18,169
Reaction score
216
Points
63
if you want to connect to an sql database you have to use an FQDN
( http://en.wikipedia.org/wiki/Fully_qualified_domain_name ) or IP address, which should appear in cpanel


( http://en.wikipedia.org/wiki/Localhost )

PHP:
<?php
/*This page is solely for the database conection.*/
DEFINE('DB_DETAILS', true);
DEFINE('DB_HOST', "sql213.0fees.net");
DEFINE('DB_USER', "fees0_4950895");
DEFINE('DB_PASS', "*******");
DEFINE('DB_NAME', "fees0_4950895_myptc");
?>
sql213.0fees.net would be the fqdn of the sql server
(ping sql213.0fees.net to get it's ip address)


I think he's trying to ask for MySQL's hostname.

@amplec: it's just localhost.

DEFINE('DB_HOST',"localhost");
 
Top