With alter table patches and the undocumented feature for administering

mysql users and databases with same name as unix groups for the user.
This commit is contained in:
2002-02-27 08:49:48 +00:00
parent 7f589bb064
commit ff52786682
10 changed files with 260 additions and 20 deletions

View File

@@ -1,5 +1,5 @@
/*
* @(#) $Header: /tmp/cvs/mysql-admutils/mysql-useradm.c,v 1.1.1.1 2001-11-25 00:41:16 lkarsten Exp $
* @(#) $Header: /tmp/cvs/mysql-admutils/mysql-useradm.c,v 1.2 2002-02-27 08:49:48 knutpett Exp $
*
* mysql-useradm.c
*
@@ -269,7 +269,7 @@ main(int argc, char *argv[])
/* for each supplied database name, perform the requested action */
for (i = 2; i < argc; i++)
{
if (! owner(argv[i]))
if (! (owner(argv[i]) || member(argv[i])))
{
dberror(NULL, "You are not the owner of '%s'. Skipping.",
argv[i]);