Please whitelist cPanel in your adblocker so that you’re able to see our version release promotions, thanks!

The Community Forums

Interact with an entire community of cPanel & WHM users!

How do i find MySQL host name and password for php forum?

Discussion in 'Database Discussion' started by nourgomaa, Oct 22, 2011.

  1. nourgomaa

    nourgomaa Registered

    Oct 22, 2011
    Likes Received:
    Trophy Points:
    Mansourah, Ad Daqahliyah, Egypt, Egypt
    cPanel Access Level:
    Website Owner
    Hi there!

    I am about creating new phpbb3 website. At first.. i am new at databases and SQL. I want to ask... in php setup step "Database settings" it requires me to fill "Database server hostname or DSN"

    In vpanel i used to fill it with name like "", but here in cpanel i cannot find this or the password. I saw many threads like this and the answer was "localhost is fine!"

    Where can i find "localhost"?, and how can i connect the database to the php forum through the localhost?

    and the last thing that i cannot login into "WHM", i enter the username and the password correctly, and if i click on login it always refreshes the page.

    Could anyone help me?

    Sorry for lengthy and my bad knowledge about databases

    Thanks in advance!
    #1 nourgomaa, Oct 22, 2011
    Last edited by a moderator: Oct 26, 2011
  2. cPanelTristan

    cPanelTristan Quality Assurance Analyst
    Staff Member

    Oct 2, 2010
    Likes Received:
    Trophy Points:
    somewhere over the rainbow
    cPanel Access Level:
    Root Administrator
    In order to get a working connection for a new installation of phpbb3, you'd first want to go to the cPanel account, click on MySQL Databases area there.

    In that area, create a database. After you create the database, create a database user. After you create the database user, add the database user to the database.

    Now, when you install phpbb3, use localhost for the hostname. You don't have to use anything else but the word localhost for that field. Next, use the database username and database username's password for the user to connect to the database. If the database name is required, enter the database name that you created as well.

    For WHM, the username would be root with the root password if you are a root level user. If you are a reseller user, it would be your reseller username and password. If you aren't the root level user nor a reseller, you probably do not have WHM access. You would want to contact your hosting provider to find out your access level, since you may only have cPanel access.
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...

Share This Page

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice