#11101 – MySQL: MySQL query failed with error 1062

Posted in ‘Kickstart / Backup Restoration’
This is a public ticket. Everybody will be able to see its contents. Do not include usernames, passwords or any other sensitive information.
Wednesday, 15 February 2012 04:57 CST
Mandatory information about my setup:

Have I read the related troubleshooter articles above before posting (which pages?)? yes
Have I searched the tickets before posting? yes
Have I read the documentation before posting (which pages?)? yes
Joomla! version: 2.5.1
PHP version: 5.2x fastcgi
MySQL version: (unknown)
Host: dreamhost
Akeeba Backup version which took the backup: 3.3.1
Kickstart version used to extract the backup: 3.3.2 and 3.3.1
Description of my issue:
Get the files extracted and database restore goes as far as 90% before reporting back with an error that includes the following line:
MySQL: MySQL query failed with error 1062 (Duplicate entry '109508' for key 'PRIMARY'
spookyxf
Wednesday, 15 February 2012 05:36 CST
Instead of deleting I thought I'd post my fix in case it helps others with this issue as it was hard to find...

When you reach the database restore section where you input your database information, scroll down to the bottom and choose the option to REPLACE instead of INSERT!

Despite my looking through the FAQ and documents I completely failed to see this, so think it wouldn't hurt to have this solution posted here :)
spookyxf
Wednesday, 15 February 2012 06:22 CST
This is actually already documented:
Use REPLACE instead of INSERT may be required if you keep getting MySQL errors about rows already existing in your tables.


Also note that Akeeba Backup 3.3.1 is a very old release with known issues. Please upgrade to 3.3.13.


Nicholas K. Dionysopoulos

Lead Developer and Director



Greek: native

English: excellent

French: basic



Please keep in mind my timezone and cultural differences when reading my replies. Thank you!



nicholas
This ticket is closed, therefore read-only. You can no longer reply to it. If you need to provide more information, please open a new ticket and mention this ticket's number.

Support Information

Working hours: Typically we work Monday to Friday, 9am to 7pm Cyprus timezone (EEST). Support is provided by the same developers writing the software, all of which live in Europe. You can still file tickets, but we cannot respond to them, outside of our working hours.

Support policy: We would like to kindly inform you that when using our support you have already agreed to the Support Policy which is part of our Terms of Service. Thank you for your understanding and for helping us help you!

Cookies Notification - Action required

This website uses cookies to provide user authentication and improve your user experience. Please indicate whether you consent to our site placing these cookies on your device. You can change your preference later, from the controls which will be made available to you at the bottom of every page of our site.