ERROR TO USE: php artisan migrate

0

I have an error executing the "php artisan migrate" command.

Already create the database in the phpMyAdmin of XAMPP, it obviously does not have tables created.

The error that I get in the terminal is:

Try "php artisan cache: clear" but also give me this error:

As I read there, since the storage / framework / cache / data folder was not created, I had to do it manually, because I did it too and follow the error.

Please, in what you can help me, I thank you.

Thanks to everyone in advance!

    
asked by roberthung 11.10.2018 в 00:54
source

2 answers

0

Check your file env DB_CONNECTION=mysql DB_HOST=127.0.0.1 DB_PORT=3306 DB_DATABASE=prueba DB_USERNAME=root DB_PASSWORD=

in the root of the project and verify that the database "DB_DATABASE" exists in your databases, in your case "test"

    
answered by 11.10.2018 в 05:50
0

The file php.ini replaces the line that puts ;extension=pdo_mysql per extension=pdo_mysql .

    
answered by 02.01.2019 в 23:11