PLZ help Q:How to find hostname of database in cpanel11

Discussion in 'MySQL' started by perfectseller, Apr 8, 2009.

  1. #1
    HI

    I need to know how to fine the mysql hostname in cpanel 11 i have hosting on lacehost{dot}com if any one can help plz pm me wat is my host name i will be very thankful

    THANKZ AND PLZ REPLY
     
    perfectseller, Apr 8, 2009 IP
  2. jestep

    jestep Prominent Member

    Messages:
    3,659
    Likes Received:
    215
    Best Answers:
    19
    Trophy Points:
    330
    #2
    If accessing it locally, it will be localhost. If remotely, you can access via the IP address or the server's hostname provided that it is a FQDN and there are DNS entries for the hostname. You will also need to create a user that has remote access to the mysql server.
     
    jestep, Apr 8, 2009 IP
  3. ishan

    ishan Prominent Member

    Messages:
    2,212
    Likes Received:
    88
    Best Answers:
    0
    Trophy Points:
    325
    #3
    Hello,
    It is localhost.

    Thank you,
    Ishan
     
    ishan, Apr 9, 2009 IP
  4. MayurGondaliya

    MayurGondaliya Well-Known Member

    Messages:
    1,233
    Likes Received:
    38
    Best Answers:
    0
    Trophy Points:
    170
    #4
    If the database and web server are on a single box then the mysql host name would be localhost. In script, you can also use IP address of the server.
     
    MayurGondaliya, Apr 9, 2009 IP
  5. crivion

    crivion Notable Member

    Messages:
    1,669
    Likes Received:
    45
    Best Answers:
    0
    Trophy Points:
    210
    Digital Goods:
    3
    #5
    usually its exactly like this
    "localhost"
     
    crivion, Apr 10, 2009 IP