Support

Site Restoration

#20390 Database server error reply: ErrNo #0

Posted in ‘Site restoration’
This is a public ticket

Everybody will be able to see its contents. Do not include usernames, passwords or any other sensitive information.

Environment Information

PHP version
n/a
CMS Type
Other
CMS Version
n/a
Backup Tool Version
n/a
Kickstart version
n/a

Latest post by nicholas on Friday, 04 July 2014 04:11 CDT

user41141
Hello,

i did this many times. I have always a copy on a second subdomain to check for new things (components, modules and plugins) without to harm the site and its works always great with akeeba to take a new copy of the site to the subdomain - until this weekend! I just wonder because after a total update on AkeebaBackup and Rockettheme Extensions like RokGallery or RokSprocket the new installation do not work, the permissions and Aria engine are fine, nothing has change expect the updates (I deinstalled all of this and reinstalled it without any sucess, except lot of work) – I tried to some of the Related results helps (actually all) and its still always fails with this:

 Database restoration

An error occurred while restoring the database. The error message can be found below. Click on the × button at the top right of this dialog message to close it and return to the database restoration page.

Database error processing line 3

Database server error reply:
ErrNo #0

 SQL=CREATE TABLE `wiot3_rokgallery_file_views` (   `file_id` int(10) unsigned NOT NULL DEFAULT '0',   `kount` int(11) NOT NULL DEFAULT '0',   PRIMARY KEY (`file_id`),   UNIQUE KEY `file_id` (`file_id`),   CONSTRAINT `wiot3_file_views_file_id__files_id` FOREIGN KEY (`file_id`) REFERENCES `wiot3_rokgallery_files` (`id`) ON DELETE CASCADE ON UPDATE CASCADE ) ENGINE=InnoDB DEFAULT CHARSET=utf8


Raw query text:

 CREATE TABLE `#__rokgallery_file_views` (   `file_id` int(10) unsigned NOT NULL DEFAULT '0',   `kount` int(11) NOT NULL DEFAULT '0',   PRIMARY KEY (`file_id`),   UNIQUE KEY `file_id` (`file_id`),   CONSTRAINT `wiot3_file_views_file_id__files_id` FOREIGN KEY (`file_id`) REFERENCES `#__rokgallery_files` (`id`) ON DELETE CASCADE ON UPDATE CASCADE ) ENGINE=InnoDB DEFAULT CHARSET=utf8

dlb
Does this error occur when you first enter the database connection information, or during the database restore? If during the restore, how far in?

Make sure the skip foreign key check box is checked. You do not want to do a foreign key check.


Dale L. Brackin
Support Specialist


us.gifEnglish: native


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


????
My time zone is EST (UTC -5) (click here to see my current time in Philadelphia, PA)

user41141
Hello Dale,

its occur almost on the end of the database restore on the last kbit actually.

Best Regard

Robert

dlb
Robert,

Is the Skip foreign key check box checked?


Dale L. Brackin
Support Specialist


us.gifEnglish: native


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


????
My time zone is EST (UTC -5) (click here to see my current time in Philadelphia, PA)

user41141
Hi Dale,

yes it was checked

nicholas
Akeeba Staff
Manager
Hello Robert,

Please go to Akeeba Backup and make sure your backup profile is selected in the dropdown on the main page. Then click on Configuration. Find the "Database backup engine" row and click on the "Configure..." button at its far right. A new pane opens below. Please make check the following settings:
Dump PROCEDUREs, FUNCTIONs and TRIGGERs => Checked
No dependency tracking => NOT checked (this is important)
Skip index engine => Checked

Take a new backup and try restoring that one.

When restoring please make sure that the "Skip foreign keys" checkbox is checked. Please note that since RokGallery has circular dependencies between its tables you may have to try restoring your site twice. In this case, please make sure that the old tables setting during restoration is set to "Backup" instead of "Drop".

Nicholas K. Dionysopoulos

Lead Developer and Director

🇬🇷Greek: native 🇬🇧English: excellent 🇫🇷French: basic • 🕐 My time zone is Europe / Athens
Please keep in mind my timezone and cultural differences when reading my replies. Thank you!

user41141
Hello Nicholas,

i just tryed it on your advice

Suppress foreign key checks was checked - backup insted of drop and twice done, allswell a new backup with your recomentations Dump PROCEDUREs, FUNCTIONs and TRIGGERs => Checked
No dependency tracking => NOT checked (this is important)
Skip index engine => Checked. I still recived:

Database error processing line 30

Database server error reply:
ErrNo #0

I will try this weekend to unistall the rok gallery and try it again. I will post the result here.

nicholas
Akeeba Staff
Manager
Hm, I am not sure what's going on. Let me tell you exactly what I did as a test:

Create a new Joomla! 3.3.1 site
Installed RokGallery
Installed the latest dev release of Akeeba Backup
I used the Database Dump settings I wrote in my previous post
Took a backup
Restored it to an empty database

The restoration succeeded. The only difference between our tests is the version of Akeeba Backup. Can you please install the latest dev release and retry? The latest dev release is the first one, towards the top.

Nicholas K. Dionysopoulos

Lead Developer and Director

🇬🇷Greek: native 🇬🇧English: excellent 🇫🇷French: basic • 🕐 My time zone is Europe / Athens
Please keep in mind my timezone and cultural differences when reading my replies. Thank you!

Support Information

Working hours: We are open Monday to Friday, 9am to 7pm Cyprus timezone (EET / EEST). Support is provided by the same developers writing the software, all of which live in Europe. You can still file tickets outside of our working hours, but we cannot respond to them until we're back at the office.

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!