zonemng/Protokol/EU/Experimental/Service/MySQL
eu_service_mysql_state
eu_service_mysql_state(
$session_id
)
*
parameters:
string
'session_id';
*
return:
success:
string
'state' = enabled | disabled | error | unknown // стандартное описание статусов сервиса
eu_service_mysql_limits
eu_service_mysql_limits(
$session_id
)
*
parameters:
string
'session_id';
*
return:
success:
struct
{
integer
'maxdb'
}
eu_service_mysql_limits_used
eu_service_mysql_limits_used(
$session_id
)
*
parameters:
string
'session_id';
*
return:
success:
struct
{
integer
'maxdb'
}
eu_service_mysql_limits_remain
eu_service_mysql_limits_remain(
$session_id
)
*
parameters:
string
'session_id';
*
return:
success:
struct
{
integer
'maxdb'
}
eu_service_mysql_list_db
eu_service_mysql_list_db(
$session_id
)
*
parameters:
string
'session_id';
*
return:
success:
array
{
integer
'0' =>
string
'db_name';
integer
'1' => ...
...
}
eu_service_mysql_create_db
eu_service_mysql_create_db(
$session_id
,
$db_name
)
*
parameters:
string
'session_id';
string
'db_name'; // имя БД для создания
*
return:
success:
boolean
= 'true'
eu_service_mysql_remove_db
eu_service_mysql_remove_db(
$session_id
,
$db_name
)
*
parameters:
string
'session_id';
string
'db_name'; // имя БД для удаления
*
return:
success:
boolean
= 'true'
eu_service_mysql_version
eu_service_mysql_version(
$session_id
)
*
parameters:
string
'session_id';
*
return:
success:
struct
{
string
'name' = 'mysql';
string
'version';
}