The Community Forums

Interact with an entire community of cPanel & WHM users!
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

PHP, MySQL Database Connection Problem

Discussion in 'Database Discussions' started by pl0tted, Jan 18, 2009.

  1. pl0tted

    pl0tted Registered

    Joined:
    Jan 18, 2009
    Messages:
    1
    Likes Received:
    0
    Trophy Points:
    1
    Guys, im new here, i have a question, im setting up my php script to connect to mysql db, i need to supply values to these variables: hostname, user, database, where can i find these information in cpanel? Thanks in advance
     
  2. JawadArshad

    JawadArshad Well-Known Member
    PartnerNOC

    Joined:
    Apr 8, 2008
    Messages:
    447
    Likes Received:
    4
    Trophy Points:
    18
    Location:
    PK
    cPanel Access Level:
    DataCenter Provider
    hostname should be localhost, user should be the database user that you create from cPanel under "cPanel >> Databases >> MySQL Databases" and database should also be the name of the database that you create from this cPanel tab.
     
Loading...

Share This Page