Description
This function creates a MySQL® database.
Examples
Note:
Use cPanel's API Shell interface (Home >> Advanced >> API Shell) to directly test cPanel API calls.
Parameters
Parameter |
Type |
Description |
Possible values |
Example |
name |
string |
Required The new database's name. |
A valid database name. Important: If database prefixing is enabled, you must prefix this value with the account prefix and an underscore (_). For example, to create the newdb database on the user cPanel account, pass a value of user_newdb. |
newdb |
Returns
This function only returns metadata.