Skip to content
Advertisement

disable symfony 5 database connection

I have the default config in my symfonu project I have this line at .env file

JavaScript

and I get this error

JavaScript

Of course I dont have not isntalled postgres, and I dont need a database for this project, How I cant fix this error I tried to comment the .env file line but I get another error

Advertisement

Answer

Commenting the line as L3xpert answer suggests doesn’t seem to do the job.
It will throw the error :
Environment variable not found: “DATABASE_URL”.

If you don’t need Doctrine but you have Website-Skeleton installed, you can remove Doctrine by running this command :

JavaScript
User contributions licensed under: CC BY-SA
7 People found this is helpful
Advertisement