Issue Bug Closed

#108028Database-Compare fails on database-names like "a.b.c"

Nicolai Schirawski 11/10/25, 15:30 updated 09/08/26, 10:03

Description

The database-compare tool fails if the database name contains more than one “.”

Steps to reproduce :
- create a running typo3-instance.
- rename the database to something like “a.b.c“
- call database compare-tool from BE or from install-tool

result : The compare-tool will fail with the message

"[ Doctrine\DBAL\Schema\Exception\TableAlreadyExists ]
  The table with name "a.b" already exists."

additional information :
In the database, the is neither a table “a”, nor “b”, nor “a.b”. The error-message is misleading.

In TYPO3 v12 this sort of database names didn’t create problems.

Reviews 4

History 913

  1. Patrick Lenk commented <span data-processor="relativetime" data-value="2025-12-16T08:39:32+00:00" > 12/16/25, 08:39 </span>

    I can confirm this issue in TYPO3 13.4.22. My database name was like “t3_13.4_sitename_stage”.
    After “typo3 database:updateschema” command or running the database compare-tool, the TableAlreadyExists exception throws.

    [ Doctrine\DBAL\Schema\Exception\TableAlreadyExists ]    
    The table with name "t3_13.4_sitename_stage" already exists. 

    Renaming the database without “.” fixed this.

  2. Georg Ringer commented and changed status Under Review Resolved done 0 % 100 % <span data-processor="relativetime" data-value="2026-08-31T07:55:13+00:00" > 08/31/26, 07:55 </span>

    Applied in changeset commit:37cb9d8c5b9cbbaf0d1de9dbc2c469852c7c4847.