[[在此处输入图像描述] [1]
Illuminate \ Database \ QueryException:SQLSTATE [42S01]:基本表或视图已存在:1050表'用户'已存在(SQL:创建表users
(id
bigint无符号不null auto_increment主键,name
varchar(255)不为空,email
varchar(255)不为空,username
varchar(255)不为空,email_verified_at
时间戳为空,password
varchar(255)不为空,remember_token
varchar(100)null,created_at
timestamp null,updated_at
timestamp null)默认字符集utf8mb4整理'utf8mb4_unicode_ci')
使用以下命令:
php artisan migrate:rollback
。
此错误向您显示,因为您之前曾尝试运行命令'php artisan migration'。必须对此进行回滚才能“撤消”这些更改,或者清除数据库表。