Description
This function slow MySQL processes on the account.
Warning:
- This function is currently not operational. You cannot successfully call this function.
- We strongly recommend that you use UAPI instead of cPanel API 2. However, no equivalent UAPI function exists.
Examples
Note:
Use cPanel's API Shell interface (Home >> Advanced >> API Shell) to directly test cPanel API calls.
Parameters
This function does not accept parameters.
Returns
Parameter |
Type |
Description |
Possible values |
Example |
db |
string |
The database name. |
A valid database name. |
example_database |
recommendations |
array |
A list of CREATE INDEX SQL statements to optimize the table. |
One or more CREATE INDEX statements. |
CREATE INDEX VEGETABLE_GROUP ON DINNER_TBL (FOOD_NAME) |
query |
string |
The slow query. |
A MySQL query. |
SELECT FOOD_NAME FROM DINNER_TBL |
avgtime |
integer |
The time that they query required to complete, in seconds |
A positive integer. |
24 |
reason |
string |
A reason for failure. Note: This function only returns areason value if it failed. |
A string that describes the error. |
This is an error message. |
result |
Boolean |
Whether the function succeeded. |
|
1 |