can not delete database using api

poopesh

New member
Joined
Apr 13, 2013
Messages
4
i successfully created a database using API, but i can delete the database
i use this code

PHP:
$db_name = 'ww';
include 'protocol/httpsocket.php';

$sock = new HTTPSocket;
$sock->connect('localhost',2222);

$sock->set_login($da_login,$da_pass);

$sock->set_method('POST');

$sock->query('/CMD_API_DATABASES',
array(
 "action" => "delete",
 "select0" => $db_name,
));


and this returns
string(103) "error=1&text=Error deleting database(s)&details=The database ww does not belong to you<br> "
 
Hello,

Try

PHP:
$db_name = 'username_ww';

Where username is your actual name of user account, who owns the DB.
 
Back
Top