+ Reply to Thread
Results 1 to 5 of 5

Thread: localhost

  1. #1
    amplec's Avatar
    amplec is offline x10Hosting Member amplec is an unknown quantity at this point
    Join Date
    Dec 2009
    Posts
    9

    localhost

    can anyone tell me what is my localhost or where can i get the name of my localhost. Plz, reply urgently.

  2. #2
    slacker3 is offline x10 Sophmore slacker3 is an unknown quantity at this point
    Join Date
    Jul 2009
    Posts
    146

    Re: localhost

    localhost is your own box and has usually the ip 127.0.0.1
    (loopback address)

  3. #3
    amplec's Avatar
    amplec is offline x10Hosting Member amplec is an unknown quantity at this point
    Join Date
    Dec 2009
    Posts
    9

    Re: localhost

    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 by amplec; 01-24-2010 at 06:49 AM.

  4. #4
    slacker3 is offline x10 Sophmore slacker3 is an unknown quantity at this point
    Join Date
    Jul 2009
    Posts
    146

    Re: localhost

    if you want to connect to an sql database you have to use an FQDN
    ( http://en.wikipedia.org/wiki/Fully_q...ed_domain_name ) or IP address, which should appear in cpanel


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

    PHP Code:
    <?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 by slacker3; 01-24-2010 at 07:06 AM.

  5. #5
    Livewire's Avatar
    Livewire is offline Abuse Compliance Officer Livewire is a glorious beacon of lightLivewire is a glorious beacon of light
    Join Date
    Jun 2005
    Location
    Behind a keyboard.
    Posts
    8,998

    Re: localhost

    Quote Originally Posted by slacker3 View Post
    if you want to connect to an sql database you have to use an FQDN
    ( http://en.wikipedia.org/wiki/Fully_q...ed_domain_name ) or IP address, which should appear in cpanel


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

    PHP Code:
    <?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");


    TOS breakers will be suspended regardless of race, creed, national origin, hair color, or favorite food. Thanks for your understanding!

+ Reply to Thread

Similar Threads

  1. itsover9000.net -> localhost
    By cenobite321 in forum Computers & Technology
    Replies: 1
    Last Post: 01-04-2010, 02:02 PM
  2. works on localhost, but errors on x10hosting
    By manoogim in forum Free Hosting
    Replies: 5
    Last Post: 09-14-2009, 03:44 PM
  3. Localhost on Cossacks
    By Hoss212 in forum Free Hosting
    Replies: 10
    Last Post: 01-25-2008, 03:17 AM
  4. 'Mysql.x10hosting.com' a 'localhost'
    By antiab in forum Soporte
    Replies: 8
    Last Post: 01-08-2008, 07:12 AM
  5. Connect to localhost MySQL
    By kolodude in forum Scripts & 3rd Party Apps
    Replies: 3
    Last Post: 11-01-2007, 01:09 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
x10hosting free hosting for the masses
dedicated servers