C carli New member Joined Jul 21, 2011 Messages 2 Jul 21, 2011 #1 Hi, is there a chance to add database for existent mysql user through DirectAdmin API? Thanks for answers!
Hi, is there a chance to add database for existent mysql user through DirectAdmin API? Thanks for answers!
C carli New member Joined Jul 21, 2011 Messages 2 Jul 21, 2011 #2 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.
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.
J jaap198503 New member Joined Sep 21, 2011 Messages 2 Sep 21, 2011 #3 This is awesome carli said: 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. Click to expand... 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' ));
This is awesome carli said: 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. Click to expand... 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' ));