이미 모든 마이그레이션 파일을 작성한 곳에서 laravel 응용 프로그램을 빌드하려고합니다. 롤백 그러나 같은 오류를 내가 갖는 :Laravel : [PDOException] SQLSTATE [42S02] : 기본 테이블 또는 뷰를 찾을 수 없음
[Illuminate\Database\QueryException] SQLSTATE[42S02]: Base table or view not found: 1146 Table 'atom.users' does n't exist (SQL: select exists(select * from `users`) as `exists`) [PDOException] SQLSTATE[42S02]: Base table or view not found: 1146 Table 'atom.users' does n't exist
내가 작곡가를 업데이트하고 마이그레이션하려고 : 나는
php artisan migrate
명령을 실행하려고 할 때, 나는 다음과 같은 오류를 보았다 언제든지 명령을 실행합니다. 게다가 .env 파일에도 오류가 없습니다. 문제가 무엇인지 찾아 낼 수 있다면 오류를 찾을 수 없습니다. 감사합니다.
<?php
use Illuminate\Support\Facades\Schema;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Database\Migrations\Migration;
class CreateUsersTable extends Migration
{
/**
* Run the migrations.
*
* @return void
*/
public function up()
{
Schema::create('users', function (Blueprint $table) {
$table->increments('id');
$table->string('name');
$table->string('email')->unique();
$table->string('password');
$table->rememberToken();
$table->timestamps();
});
}
/**
* Reverse the migrations.
*
* @return void
*/
public function down()
{
Schema::drop('users');
}
}
아톰 데이터베이스를 만들었습니까? –
예 .. 아톰 – Hola
이라는 이름의 데이터베이스가 있는데 '작곡가 덤프 - 자동로드'명령을 실행하고 다시 시도하십시오 .. –