mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-12-28 09:38:53 +01:00
MySQL 8.0 fails to create user as part of GRANT ALL statement
This commit is contained in:
parent
1e23fca924
commit
d1785a5340
@ -1136,7 +1136,8 @@ class Db
|
|||||||
$create .= ' DEFAULT CHARACTER SET '.$this->Link_ID->charset2mysql[$charset].';';
|
$create .= ' DEFAULT CHARACTER SET '.$this->Link_ID->charset2mysql[$charset].';';
|
||||||
}
|
}
|
||||||
$sqls[] = $create;
|
$sqls[] = $create;
|
||||||
$sqls[] = "GRANT ALL ON `$currentDatabase`.* TO $currentUser@'$grant_host' IDENTIFIED BY ".$this->quote($currentPassword);
|
$sqls[] = "CREATE USER $currentUser@'$grant_host' IDENTIFIED BY ".$this->quote($currentPassword);
|
||||||
|
$sqls[] = "GRANT ALL PRIVILEGES ON `$currentDatabase`.* TO $currentUser@'$grant_host'";
|
||||||
break;
|
break;
|
||||||
default:
|
default:
|
||||||
throw new Exception\WrongParameter(__METHOD__."(user=$adminname, \$pw) not yet implemented for DB-type '$this->Type'");
|
throw new Exception\WrongParameter(__METHOD__."(user=$adminname, \$pw) not yet implemented for DB-type '$this->Type'");
|
||||||
|
Loading…
Reference in New Issue
Block a user