psr.phar install failed after database creation when you change the config .psh.yaml.dist
BlackScorp opened this issue · 0 comments
PHP Version
7.4.20
Shopware Version
6.4.5.1
Expected behaviour
when you call php psr.phar install CREATE DATABASE should be executed
Actual behaviour
when you call php psr.phar install CREATE DABASE fail because database is unknown
How to reproduce
-
Clone shopware/development
-
call "ddev config"
-
call "ddev start"
-
change your database entries in .psh.yaml.dist
const:
DB_USER: "root"
DB_PASSWORD: "root"
DB_HOST: "db"
DB_PORT: "3306"
DB_NAME: "db"
APP_URL: "https://shopware-dev.ddev.site" -
call php psr.phar install on your container
What i assume here. config creates
DATABASE_URL=mysql://root:root@db:3306/db
then DROP DATABASE is called and after this the DATABASE_URL is not valid anymore for the CREATE DATABASE part you need to ignore the databasename in the connection. otherwise PDO crashes.
i assume you added there some hard links for default values