Jump to content

Provisioning mySQL after package purchase


Recommended Posts

Hi-- I've read the documentation for the WHMCS development tools, and I understand how to fire an event after a user purchases a package.


However, can someone explain the "right" way to provision a mySQL DB for the new User and package? Would I just do it in PHP, connect to the DB as the root user, create a new mySQL user and assign him privileges to a new DB? Or is there a more correct way to do this via APIs so that the WHM / WHmCS system "knows about" the database and user and can remove them automatically?


Thanks for any information, documentation or advice.

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Recently Browsing   0 members

    • No registered users viewing this page.
  • Create New...

Important Information

By using this site, you agree to our Terms of Use & Guidelines and understand your posts will initially be pre-moderated