Giyash
Giyash

Reputation: 17

Can't install Sylius starter project

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

Upvotes: -2

Views: 98

Answers (2)

Ahmed Aziz Abbassi
Ahmed Aziz Abbassi

Reputation: 1

Try to run :

  1. php bin/console doctrine:schema:create to create the database
  2. php bin/console sylius:install

This link contains a screenshot of the project running: [link][2]

Upvotes: 0

Giyash
Giyash

Reputation: 17

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

Upvotes: 0

Related Questions