Reputation: 17
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 :
then I create the database on phpmyadmin then I re-run the command with the database created but empty:
I tried to launch the creation of the database with doctrine and then do the migration but still the same as the image above.
Someone who has already had the same problem :(
Upvotes: -2
Views: 98
Reputation: 1
Try to run :
php bin/console doctrine:schema:create
to create the databasephp bin/console sylius:install
Upvotes: 0
Reputation: 17
! UPDATE ! : I solved the problem by changing the php version to 8.0.30 !
Upvotes: 0