New database foro existent mysql user

carli

New member
Joined
Jul 21, 2011
Messages
2
Hi,

is there a chance to add database for existent mysql user through DirectAdmin API?

Thanks for answers!
 
Ok, nevermind I figured it out. It's the same query as for first database and user, only that you add "userlist" value with existent mysql user.
 
This is awesome

Ok, nevermind I figured it out. It's the same query as for first database and user, only that you add "userlist" value with existent mysql user.
Thanks a lot.

$sock->query('/CMD_API_DATABASES',
array(
'action' => 'create',
'name' => "new_db_name",
'userlist' => "existing_user_name",
'passwd' => 'existing_password',
'passwd2' => 'existing_password'
));
 
Back
Top