We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4982948 commit 1157db1Copy full SHA for 1157db1
1 file changed
lib/private/Setup/PostgreSQL.php
@@ -154,6 +154,8 @@ private function createDBUser(IDBConnection $connection) {
154
// create the user
155
$query = $connection->prepare("CREATE USER " . addslashes($this->dbUser) . " CREATEDB PASSWORD '" . addslashes($this->dbPassword) . "'");
156
$query->execute();
157
+ $query = $connection->prepare('GRANT CONNECT ON DATABASE ' . $this->dbName . ' TO '.addslashes($this->dbUser));
158
+ $query->execute();
159
} catch (DatabaseException $e) {
160
$this->logger->error('Error while trying to create database user');
161
$this->logger->logException($e);
0 commit comments