QQ扫一扫联系
执行下面这句,会出现最下面这二个这样的错误
php artisan modstart:module-install-all
[Illuminate\Database\QueryException] SQLSTATE[42S01]: Base table or view already exists: 1050 Table 'lgschedule_run' already exists (SQL: create table `lgschedule _run` (`id` bigint unsigned not null auto_increment primary key, `created_at` timestamp default 0 not null, `updated_at` time stamp default 0 not null, `name` varchar(200) null comment "", `startTime` datetime null comment "", `endTime` datetime null comment "", `status` tinyint null comment "", `result` varchar(200) null comment "") default character set utf8mb4 collate ut f8mb4_unicode_ci)
[Illuminate\Database\QueryException]
SQLSTATE[42S01]: Base table or view already exists: 1050 Table 'lgschedule_run' already exists (SQL: create table `lgschedule
_run` (`id` bigint unsigned not null auto_increment primary key, `created_at` timestamp default 0 not null, `updated_at` time
stamp default 0 not null, `name` varchar(200) null comment "", `startTime` datetime null comment "", `endTime` datetime null
comment "", `status` tinyint null comment "", `result` varchar(200) null comment "") default character set utf8mb4 collate ut
f8mb4_unicode_ci)
https://modstart.com/doc/install/upgrade.html#%E7%B3%BB%E7%BB%9F%E5%8D%87%E7%BA%A7%E6%9C%AA%E5%AE%8C%E5%85%A8%E5%A6%82%E4%BD%95%E6%89%8B%E5%8A%A8%E8%A1%A5%E6%95%91
提示 schedule_run 表已经存在, 可以先删掉 schedule_run 表后再执行试试。
删除前备份数据。