During a Shopware 6.5 update (6.5.8.7 > 6.5.8.18) attempt via the web installer, the process failed with the following error:
In PDOConnect.php line 25:
[PDOException (1049)]
SQLSTATE[HY000] [1049] Unknown database 'shopware'
The project had a valid DATABASE_URL configured in .env, but .env.local was missing. During the web installer process, it seems that the installer ignored the missing .env.local state and overwrote or regenerated the DATABASE_URL with the default database name:
DATABASE_URL=mysql://root:root@localhost/shopware
During a Shopware 6.5 update (6.5.8.7 > 6.5.8.18) attempt via the web installer, the process failed with the following error:
The project had a valid DATABASE_URL configured in .env, but .env.local was missing. During the web installer process, it seems that the installer ignored the missing .env.local state and overwrote or regenerated the DATABASE_URL with the default database name:
DATABASE_URL=mysql://root:root@localhost/shopware