Skip to content

Commit 4a2d518

Browse files
author
Alexander Paliarush
committed
MAGETWO-45069: Can't change Database Name after fail during installation process Unknown database 'magento2'
1 parent 517a630 commit 4a2d518

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

setup/src/Magento/Setup/Validator/DbValidator.php

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -123,8 +123,10 @@ private function checkDatabaseName(\Magento\Framework\DB\Adapter\AdapterInterfac
123123
return true;
124124
}
125125
}
126-
throw new \Magento\Setup\Exception("Database '{$dbName}' does not exist "
127-
."or specified database server user does not have privileges to access this database.");
126+
throw new \Magento\Setup\Exception(
127+
"Database '{$dbName}' does not exist "
128+
."or specified database server user does not have privileges to access this database."
129+
);
128130
}
129131

130132
/**

0 commit comments

Comments
 (0)