Moin Zusammen,
die Datenbank-Migration per Konsole beim Hoster Metanet schlägt fehl:
Code:
/opt/php82/bin/php vendor/bin/contao-console contao:migrate
Code:
/opt/php82/bin/php vendor/bin/contao-console contao:migrate
18:15:34 CRITICAL [console] Error thrown while running command "contao:migrate". Message: "An exception occurred in the driver: SQLSTATE[HY000] [2002] No such file or directory" ["exception" => Doctrine\DBAL\Exception\ConnectionException^ { …},"command" => "contao:migrate","message" => "An exception occurred in the driver: SQLSTATE[HY000] [2002] No such file or directory"]
In ExceptionConverter.php line 101:
An exception occurred in the driver: SQLSTATE[HY000] [2002] No such file or directory
In Exception.php line 28:
SQLSTATE[HY000] [2002] No such file or directory
In Driver.php line 33:
SQLSTATE[HY000] [2002] No such file or directory
contao:migrate [--with-deletes] [--schema-only] [--migrations-only] [--dry-run] [--format FORMAT] [--no-backup] [--hash HASH]
Eine Migration mit dem Contao-Manager läuft dagegen problemlos durch.
Der Konsolenbefehl funktioniert bei AllInkl (mit entsprechendem Pfad zur PHP Binary) problemlos.
Einziger von mir genutzter Unterschied: AllInkl->PHP8.3, Metanet->PHP8.2
Hat da jemand einen Tipp?
Grüße
Lesezeichen