Bug #48138

Cannot connect to the current database

Added by Oliver Hader about 2 years ago. Updated about 2 years ago.

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

Scenario:

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

related to Core - Bug #47744: Fatal error: Call to a member function fetch_object() on ... Resolved 2013-04-30
related to Core - Bug #47746: Converting 4.7 sites to 6.1 sites much to complicated and... Closed 2013-04-30

Associated revisions

Revision b2c3fd00
Added by Oliver Hader about 2 years ago

[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

Revision 71725415
Added by Oliver Hader about 2 years ago

[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

Also available in: Atom PDF