How to create a "dbname" NOT "username_dbname" From Cpanel/WHM?

Discussion in 'Site & Server Administration' started by Proximity, Sep 16, 2008.

  1. #1
    Hey.

    I want to create a new database and name it "newdb" only.

    When i try to create a new DB in an account through cpanel, it makes like this "username_newdb"

    I want to make it "newdb" only... and not include the username.

    How can i do that?
     
    Proximity, Sep 16, 2008 IP
  2. jliu

    jliu Peon

    Messages:
    235
    Likes Received:
    4
    Best Answers:
    0
    Trophy Points:
    0
    #2
    I do not believe that is a possibility through cPanel. If you own the server, you can create it via the command line exactly the way you specify.
     
    jliu, Sep 16, 2008 IP
  3. Proximity

    Proximity Banned

    Messages:
    3,930
    Likes Received:
    35
    Best Answers:
    0
    Trophy Points:
    0
    #3
    I own the server..

    How can i create it through SSH?

    I have very less knowledge of maintaining a server...

    Thanks.
     
    Proximity, Sep 16, 2008 IP
  4. Camay123

    Camay123 Well-Known Member

    Messages:
    3,423
    Likes Received:
    86
    Best Answers:
    0
    Trophy Points:
    160
    #4
    Camay123, Sep 16, 2008 IP
  5. Bohra

    Bohra Prominent Member

    Messages:
    12,573
    Likes Received:
    537
    Best Answers:
    0
    Trophy Points:
    310
    #5
    If u own the server you can do it via ssh
     
    Bohra, Sep 17, 2008 IP
  6. CineTube

    CineTube Peon

    Messages:
    428
    Likes Received:
    5
    Best Answers:
    0
    Trophy Points:
    0
    #6
    It is not possible. Every time you create a database in cPanel it (database name) will include your username.
     
    CineTube, Sep 17, 2008 IP
  7. Pathan

    Pathan Well-Known Member

    Messages:
    2,196
    Likes Received:
    218
    Best Answers:
    0
    Trophy Points:
    165
    #7
    Yeah its not possible to create it like "newdb". username must be there, I think it doesn't create any problem in having username before the db name. Why you want it to be removed?
     
    Pathan, Sep 17, 2008 IP
  8. jayshah

    jayshah Peon

    Messages:
    1,126
    Likes Received:
    68
    Best Answers:
    1
    Trophy Points:
    0
    #8
    jayshah, Sep 17, 2008 IP
  9. Proximity

    Proximity Banned

    Messages:
    3,930
    Likes Received:
    35
    Best Answers:
    0
    Trophy Points:
    0
    #9
    Proximity, Sep 17, 2008 IP