I used Magento Data Migration Tool to import my database test2_web2.sql from 1.9.2.2 to 2.2.3. Migration is successful with no issues.
If I export the database and then try to import it.
mysql -p -u test2_test test2_web2 < test2_web2.sql
The following error is displayed,
ERROR 1062 (23000) at line 368677: Duplicate entry '0' for key 'PRIMARY'
From my database Line 368677
ALTER TABLE
cron_schedule
From within,
-- Indexes for table `cron_schedule`
--
**ALTER TABLE `cron_schedule`**
ADD PRIMARY KEY (`schedule_id`),
ADD KEY `CRON_SCHEDULE_JOB_CODE` (`job_code`),
ADD KEY `CRON_SCHEDULE_SCHEDULED_AT_STATUS` (`scheduled_at`,`status`);
Does anyone know how I can resolve this?