Solucionado (ver solução)
Solucionado
(ver solução)
1
resposta

Ao tentar executar o migrate artisan na aula, utilizando o sqlite conforme a aula, acontece o seguinte erro no terminal

C:\Users\Sanossuke\Documents\controle-series>php artisan migrate

Illuminate\Database\QueryException : SQLSTATE[HY000]: General error: 26 file is not a database (SQL: select * from sqlite_master where type = 'table' and name = migrations)

at C:\Users\Sanossuke\Documents\controle-series\vendor\laravel\framework\src\Illuminate\Database\Connection.php:664 660| // If an exception occurs when attempting to run a query, we'll format the error 661| // message to include the bindings with SQL, which will make this exception a 662| // lot more helpful to the developer instead of just the database's errors. 663| catch (Exception $e) {

664| throw new QueryException( 665| $query, $this->prepareBindings($bindings), $e 666| ); 667| } 668|

Exception trace:

1 PDOException::("SQLSTATE[HY000]: General error: 26 file is not a database") C:\Users\Sanossuke\Documents\controle-series\vendor\laravel\framework\src\Illuminate\Database\Connection.php:326

2 PDO::prepare("select * from sqlite_master where type = 'table' and name = ?") C:\Users\Sanossuke\Documents\controle-series\vendor\laravel\framework\src\Illuminate\Database\Connection.php:326

Please use the argument -v to see more details.

1 resposta
solução!

pessoal! eu consegui resolver o erro, mas fiz algumas coisas, ainda utilizando o sqlite e tudo mais para seguir o treinamento, eu passei tudo para o xamp, e recriei a pasta databse.sqlite.

Funcionou pessoal! posso prosseguir com o treinamento.