Can't install Sylius starter project

57 Views Asked by At

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 :(

1

There are 1 best solutions below

1
Giyash On

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