• 1403/09/11

اشکال در migrate قسمت 184 :

وقتی می خواهم جداول را ایجاد کنم ارور زیر را می دهد لطفا کمک کنید

Migration table created successfully.

Migrating: 2014_10_12_000000_create_users_table

 

  Illuminate\Database\QueryException  

 

 SQLSTATE[HY000]: General error: 1025 Error on rename of '.\laravel\users' to '.\laravel\#sql2-1ab8-d4' (errno: 165 "Table is read only") (SQL: alter table `users` add unique `users_email_unique`(`email`))

 

 at D:\programing\webdesign\htmlAndCss\laravel\project\vendor\laravel\framework\src\Illuminate\Database\Connection.php:712

   708▕         // If an exception occurs when attempting to run a query, we'll format the error

   709▕         // message to include the bindings with SQL, which will make this exception a

   710▕         // lot more helpful to the developer instead of just the database's errors.

   711▕         catch (Exception $e) {

 ➜ 712▕             throw new QueryException(

   713▕                 $query, $this->prepareBindings($bindings), $e

   714▕             );

   715▕         }

   716▕     }

 

 1   D:\programing\webdesign\htmlAndCss\laravel\project\vendor\laravel\framework\src\Illuminate\Database\Connection.php:501

     PDOException::("SQLSTATE[HY000]: General error: 1025 Error on rename of '.\laravel\users' to '.\laravel\#sql2-1ab8-d4' (errno: 165 "Table is read only")")

 

 2   D:\programing\webdesign\htmlAndCss\laravel\project\vendor\laravel\framework\src\Illuminate\Database\Connection.php:501

     PDOStatement::execute()

  • 1403/09/12
  • ساعت 22:49

سلام وقت بخیر

 

میگه جدول users رو نمیتونید تغییر بدید

 

اگر دیتای مهمی ندارید کلا پاک کنید دوباره مایگریت بگییرید


logo-enamadlogo-samandehi