Skip to content

SQLSTATE[3D000]-error during installation MM 2.1.8 and C4.4.47  #1376

@Sarahsolus

Description

@Sarahsolus

MM: v2.1.8 (but also earlier versions, that were working 2 weeks ago)
Contao: 4.4.47
Php: 7.2

During installation of current MM v2.1.8 and Contao v4.4.47 via composer, near the end the installation breaks with these errors:

[WARNING] Some commands could not be registered:


In AbstractMySQLDriver.php line 113:

An exception occurred while executing 'SHOW FULL TABLES WHERE Table_type = 'BASE TABLE'':

SQLSTATE[3D000]: Invalid catalog name: 1046 No database selected


In PDOConnection.php line 109:

SQLSTATE[3D000]: Invalid catalog name: 1046 No database selected


In PDOConnection.php line 107:

SQLSTATE[3D000]: Invalid catalog name: 1046 No database selected


[WARNING] Some commands could not be registered:


In AbstractMySQLDriver.php line 113:

An exception occurred while executing 'SHOW FULL TABLES WHERE Table_type = 'BASE TABLE'':

SQLSTATE[3D000]: Invalid catalog name: 1046 No database selected


In PDOConnection.php line 109:

SQLSTATE[3D000]: Invalid catalog name: 1046 No database selected


In PDOConnection.php line 107:

SQLSTATE[3D000]: Invalid catalog name: 1046 No database selected


  • changing the composer.json entries to

"metamodels/bundle_all": "< 2.1.7",
"metamodels/core": "< 2.1.7",

doesn't help.

  • removing those entries fixes the error (but also removes MM)...

  • error happens on the server and also on local system. (both PHP7.2, MySQL5.7)

  • installation broke when trying to add metamodels to an existing and working Contao

  • installation also broke during installation of an new project

Metadata

Metadata

Labels

bugA bug! A bug! Fast, squish it!

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions