klappt leider nicht ...
Via Laragon eine Installation gestartet und via contao-manager.phar.php dem CM eingerichtet.
Das Installtool nicht gestartet.
Ich habe dann eine config/parameters.yml manuell angelegt und hiermit befüllt:
PHP-Code:
parameters:
database_host: localhost
database_port: 3306
database_user: root
database_password: null
database_name: php8
secret habe ich weggelassen ... wusste nicht, wie der key korrekt generiert wird.
in der Konsole
PHP-Code:
C:\laragon\www\php8\vendor\bin
contao-console contao:migrate
und dann kommt dieser Fehler:
PHP-Code:
19:51:05 CRITICAL [console] Error thrown while running command "contao:migrate". Message: "An exception occurred while executing 'SHOW FULL TABLES WHERE Table_type = 'BASE TABLE'':
SQLSTATE[3D000]: Invalid catalog name: 1046 No database selected" ["exception" => Doctrine\DBAL\Exception\ConnectionException^ { …},"command" => "contao:migrate","message" => """ An exception occurred while executing 'SHOW FULL TABLES WHERE Table_type = 'BASE TABLE'':\n \n SQLSTATE[3D000]: Invalid catalog name: 1046 No database selected """]
In AbstractMySQLDriver.php line 112:
An exception occurred while executing 'SHOW FULL TABLES WHERE Table_type = 'BASE TABLE'':
SQLSTATE[3D000]: Invalid catalog name: 1046 No database selected
In Exception.php line 18:
SQLSTATE[3D000]: Invalid catalog name: 1046 No database selected
In PDOConnection.php line 141:
SQLSTATE[3D000]: Invalid catalog name: 1046 No database selected
Lesezeichen