mrjcleaver
Verified User
- Joined
- Sep 22, 2006
- Messages
- 5
Hi,
I want to automate the creation of database users. http://www.directadmin.com/features.php?id=544 suggests that this should work:
Am I wrong to think that I should use $adminname to log in with? Or should I use the username that should own the database?
The documentation does not specify.
Thanks, M.
I want to automate the creation of database users. http://www.directadmin.com/features.php?id=544 suggests that this should work:
my $url = 'http://$adminname:$adminpasswd@localhost:2222/CMD_API_DB_USER';
my $response = $browser->post( $url,
[
action => 'create',
name => "$databasename",
user => "$databasename",
passwd => "$dbpasswd",
passwd2 =>"$dbpasswd",
]
);
Am I wrong to think that I should use $adminname to log in with? Or should I use the username that should own the database?
The documentation does not specify.
Thanks, M.