skip to Main Content

I’d like to create a Sylius project but I can’t install the initial project following the instructions in the documentation.

the command compose

compose create-project sylius/sylius-standard MyFirstShop 

works but when I create .env.local which contains :

DATABASE_URL=mysql://root@localhost/my_project?serverVersion=8

then I run the command :
php bin/console sylius:install this is where the installation crashes.

I have the following error :

no database error

then I create the database on phpmyadmin then I re-run the command with the database created but empty:

enter image description here

I tried to launch the creation of the database with doctrine and then do the migration but still the same as the image above.

enter image description here

Someone who has already had the same problem 🙁

2

Answers


  1. Chosen as BEST ANSWER

    ! UPDATE ! : I solved the problem by changing the php version to 8.0.30 !


  2. The environment variables file should be named .env instead of .env.local

    .env file should presents in folder’s structure

    The sylius standard front-end app

    Login or Signup to reply.
Please signup or login to give your own answer.
Back To Top
Search