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!

adddb() stopped working after 11.25 ?

Discussion in 'cPanel Developers' started by lonea, Dec 25, 2009.

  1. lonea

    lonea Member

    Joined:
    Mar 19, 2004
    Messages:
    18
    Likes Received:
    0
    Trophy Points:
    151
    I'm using this to create a database

    <!--<cpanel Mysql="adddb($FORM{'db'})">-->

    ever since 11.25 update, it is not working. The adduser still work tho. Any idea why it stopped working ?

    This is a php script being loaded via direct cpanel login.

    Also have these loaded in the php

    <cpanel PHP="loadvars()">
    <cpanel PHP="loadparkeddomains()">
    <cpanel PHP="loadsubdomains()">
    <cpanel PHP="loaddocroots()">

    edit: so I found the error in the log file. But it is not making sense

    [2009-12-25 19:13:42 -0500] warn [mysql::adddb] Encountered error in mysql::adddb: xxxxxxxx_vdssi4 is an invalid Database name.
     
    #1 lonea, Dec 25, 2009
    Last edited: Dec 25, 2009
  2. lonea

    lonea Member

    Joined:
    Mar 19, 2004
    Messages:
    18
    Likes Received:
    0
    Trophy Points:
    151
    Problem solved.

    Seems like in 11.25 you don't have to specify the user prefix when adding a db. Apparently the API does it for you automatically.
     
Loading...

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