Database transfer #1062 SQL error message
-
Hello, I am trying to transfer a WordPress web-site to a new host, but received the following SQL error message upon uploading:
Error
SQL query:
--
-- Indexes for dumped tables
--
--
-- Indexes for table
wp_actionscheduler_actions
--
ALTER TABLE
wp_actionscheduler_actions
ADD PRIMARY KEY (
action_id
),ADD KEY
hook
(hook
),ADD KEY
status
(status
),ADD KEY
scheduled_date_gmt
(scheduled_date_gmt
),ADD KEY
args
(args
),ADD KEY
group_id
(group_id
),ADD KEY
last_attempt_gmt
(last_attempt_gmt
),ADD KEY
claim_id
(claim_id
)#1062 - Duplicate entry '0' for key 'PRIMARY'
The site seemed functional, and I did a bit of work on it, updating plugins. I received error messages when I tried to customise the appearance. The next day the database was blocked for exceeding 2 GB (the .sql file I had uploaded was 228 MB). If I recall correctly, it was the wp_actionscheduler_logs table that was very large, maybe 1.8 GB or so.
I tried again today, (also re-uploading all the files) but received the same error message. wp_actionscheduler_logs is currently around 5 MB.
Much appreciate any advice.
- The topic ‘Database transfer #1062 SQL error message’ is closed to new replies.