Bug #48138
Cannot connect to the current database
Status: | Resolved | Start date: | 2013-05-13 | |
---|---|---|---|---|
Priority: | Must have | Due date: | ||
Assigned To: | Oliver Hader | % Done: | 100% |
|
Category: | Install Tool | Spent time: | - | |
Target version: | - | |||
TYPO3 Version: | 6.1 | Is Regression: | ||
PHP Version: | 5.3 | Sprint Focus: | ||
Complexity: |
Description
- blank website, no LocalConfiguration.php file
- MySQL user that sees all databases but does not have access to all of them
- request to http://lotse.local/typo3/install/index.php?TYPO3_INSTALL[type]=config
Bug:
#1270853883: TYPO3 Fatal Error: Cannot connect to the current database, "#mysql50#.backup"!
Reason:
DatabaseConnection::admin_get_dbs() iterates over all existing databases and tries to use it. If that fails, an exception is thrown - which is not caught in the mentioned method.
Related issues
Associated revisions
[BUGFIX] Cannot connect to the current database
DatabaseConnection::admin_get_dbs() iterates over all existing
databases during install process and tries to use each of them.
If that fails, an exception is thrown - which is not caught in
the mentioned method.
Change-Id: I5fdf08b867ead6535ce737fdceb86a977b539462
Fixes: #48138
Releases: 6.0, 6.1, 6.2
Reviewed-on: https://review.typo3.org/20732
Reviewed-by: Dmitry Dulepov
Tested-by: Dmitry Dulepov
Reviewed-by: Alexander Opitz
Tested-by: Alexander Opitz
Reviewed-by: Christian Kuhn
Tested-by: Christian Kuhn
[BUGFIX] Cannot connect to the current database
DatabaseConnection::admin_get_dbs() iterates over all existing
databases during install process and tries to use each of them.
If that fails, an exception is thrown - which is not caught in
the mentioned method.
Change-Id: I5fdf08b867ead6535ce737fdceb86a977b539462
Fixes: #48138
Releases: 6.0, 6.1, 6.2
Reviewed-on: https://review.typo3.org/20848
Reviewed-by: Christian Kuhn
Tested-by: Christian Kuhn
History
#1 Updated by Gerrit Code Review about 2 years ago
- Status changed from New to Under Review
Patch set 1 for branch master has been pushed to the review server.
It is available at https://review.typo3.org/20732
#2 Updated by Gerrit Code Review about 2 years ago
Patch set 2 for branch master has been pushed to the review server.
It is available at https://review.typo3.org/20732
#3 Updated by Gerrit Code Review about 2 years ago
Patch set 1 for branch TYPO3_6-1 has been pushed to the review server.
It is available at https://review.typo3.org/20848
#4 Updated by Gerrit Code Review about 2 years ago
Patch set 1 for branch TYPO3_6-0 has been pushed to the review server.
It is available at https://review.typo3.org/20849
#5 Updated by Oliver Hader about 2 years ago
- Status changed from Under Review to Resolved
- % Done changed from 0 to 100
Applied in changeset 7172541509ab25f7792948c43e21e40795e058aa.