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.

Using php to list all database in my account

Discussion in 'General Discussion' started by krisdv, Jul 5, 2004.

  1. krisdv

    krisdv Well-Known Member

    Joined:
    Jun 18, 2003
    Messages:
    175
    Likes Received:
    0
    Trophy Points:
    16
    Location:
    Belgium
    The result of the below code is a blank page, while on another server it lists all db's in my account. Why I get this blank page on a cpanel server?

    The code I'm using is attached.
     

    Attached Files:

    • test.txt
      File size:
      911 bytes
      Views:
      90
  2. krisdv

    krisdv Well-Known Member

    Joined:
    Jun 18, 2003
    Messages:
    175
    Likes Received:
    0
    Trophy Points:
    16
    Location:
    Belgium
    Anyone who managed to display the databases using the attached code ?
     
  3. bamasbest

    bamasbest Well-Known Member

    Joined:
    Jan 10, 2004
    Messages:
    531
    Likes Received:
    0
    Trophy Points:
    16
    Remember, cpanel prepends the main account username to both the database name and database username.

    So, if the main account is owned by joe,

    the database would more than likely be joe_testdb

    and the login would be joe_<user>
     
Loading...

Share This Page