简体   繁体   English

像这样安装Laravel spark时出现错误

[英]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:创建表announcementsid 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.

相关问题 我有一些错误ajax - I have got some error ajax 当我在 docker 中运行时尝试使用 postgres 在 laravel 中迁移时,我遇到了一个错误,例如找不到驱动程序 - When i try to migrate in laravel with postgres while running in docker i got an error like could not find driver 我在窗口7上安装了Laravel并且收到错误消息 - I install Laravel on window 7 and I got error message laravel graphql游乐场我设置它时出错 - laravel graphql playground got error when i setup it 我尝试使用 Laravel Storage 下载文件,但浏览器出错 - I have tried download file using Laravel Storage but i got error from browser 我试图运行一个现有的 laravel 项目。 但是在作曲家更新期间,我收到了这个错误: - I have tried to run an existing laravel project. But during composer update I got this error: 安装 cakephp 3 后出现错误 - I got an error after install cakephp 3 我正在尝试将 maatwebsite/excel package 安装到我的 laravel 中,但出现此错误 - I'm trying to install maatwebsite/excel package to my laravel with but got this error 我在inc.library.php中有一些错误,什么是number_format()要求参数1加倍? - i have got some error in inc.library.php, what is a number_format() expects parameter 1 to be double? 错误 403:我在 Laravel 中提交表单时出现 403 错误 - Error 403: I got 403 error when i submit the form in laravel
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM