[英]I have got some error when I install Laravel spark like this
PS C:\\Win10\\tests\\spark-installer> cd .\\sparkprojectname\\ PS C:\\Win10\\tests\\spark-installer\\sparkprojectname> php artisan migrate PS C:\\ Win10 \\ tests \\ spark-installer> cd。\\ sparkprojectname \\ PS C:\\ Win10 \\ tests \\ spark-installer \\ sparkprojectname> php artisan migration
[Illuminate\\Database\\QueryException] SQLSTATE[42S01]: Base table or view already exists: 1050 Table 'announcements' alrea dy exists (SQL: create table announcements
( id
varchar(255) not null, user_id
int not null, body
text not null, action_text
varchar(255) null, action_url
te xt null, created_at
timestamp null, updated_at
timestamp null) default character set utf8mb4 collate utf8mb4_unicode_ci) [Illuminate \\ Database \\ QueryException] SQLSTATE [42S01]:基表或视图已存在:1050表“公告”区域已存在(SQL:创建表announcements
( id
varchar(255)不为null, user_id
int不为null, body
文本不存在) null, action_text
varchar(255)null, action_url
te xt null, created_at
时间戳为null, updated_at
时间戳为null)默认字符集utf8mb4整理utf8mb4_unicode_ci)
[PDOException] SQLSTATE[42S01]: Base table or view already exists: 1050 Table 'announcements' already exists [PDOException] SQLSTATE [42S01]:基本表或视图已存在:1050表“公告”已存在
The table announcements
already exists in the Database. 表announcements
已经存在于数据库中。 And hence when you run the migrate command then it triggers the error. 因此,当您运行migration命令时,它将触发错误。 If it is necessary to migrate, then delete the table from database. 如果需要迁移,请从数据库中删除该表。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.