1062 Duplicate entry '1' for key 'joshh_abauthor.PRIMARY'

Started by AntonioGreco, 23 May 2024, 20:40:35

Previous topic - Next topic
A financial contribution is greatly appreciated as a support, to help us to keep live the project.
If you like this project you can donate some piece of BitCoin to this address: bc1qy5tgq6tvrckac2a57unxvqcnxamrvhduve9sj9

AntonioGreco


hi,
I installed the component/module/plugin "Alexandria Book Library" compatible for joomla 4 and 5 (beta) and everything went fine, no errors.

I wanted to import the previously exported .sql file and it returns this error:

1062 Duplicate entry '1' for key 'joshh_abauthor.PRIMARY'

I only cared about the authors.


How can I solve this problem?

Thanks

A financial contribution is greatly appreciated as a support, to help us to keep live the project.
If you like this project you can donate some piece of BitCoin to this address: bc1qy5tgq6tvrckac2a57unxvqcnxamrvhduve9sj9

AntonioGreco

Quote from: AntonioGreco on 23 May 2024, 20:40:35hi,
I installed the component/module/plugin "Alexandria Book Library" compatible for joomla 4 and 5 (beta) and everything went fine, no errors.

I wanted to import the previously exported .sql file and it returns this error:

1062 Duplicate entry '1' for key 'joshh_abauthor.PRIMARY'

I only cared about the authors.


How can I solve this problem?

Thanks

I understood that the problem is caused by the different data structure of the old and new component database. So I should, after exporting the fie. sql and before importing it, count the "null" fields before VALUES and set the value after the VALUES value by counting the fields. Obviously it's a huge job. Is there a way to simplify this Mysql version switch? Have any of you found yourself in this situation? Thanks

federica

Al mondo ci sono 10 tipi di persone, quelli che hanno capito il codice binario e quelli che non l'hanno capito.
Informatizzati [url="https://informatizzati.org"]https://informatizzati.org[/url]
Stacca la spina [url="https://disconnessi.org"]https://disconnessi.org[/url]