I use Laravel to connect MySQL database in my pet-project.
I use sail up -d
after yarn dev
to start the project. Working with DataGrip.
But I can't php artisan migrate
because I have error SQLSTATE[HY000] [1049] Unknown database 'cookies-project'.
I tried to change localhost
, 127.0.0.1
. Use command: php artisan config:cache
, php artisan optimize:clear
but nothing work. Have the same error.
What I'm doing wrong? Can anyone help?