Database server error reply:
ErrNo #0
SQL=CREATE TABLE `wp_fileaway_downloads` (`id` int(11) NOT NULL auto_increment ,`timestamp` varchar(255) NULL ,`file` varchar(1000) NULL ,`uid` int(11) NULL ,`email` varchar(255) NULL ,`ip` varchar(255) NULL ,`agent` varchar(255) NULL ,`notified` bit(1) NULL DEFAULT 'b\'0\'' , PRIMARY KEY (`id`), KEY `uid` (`uid`) USING BTREE) ENGINE=InnoDB DEFAULT COLLATE utf8mb4_unicode_ci
Raw query text:
CREATE TABLE `#__fileaway_downloads` (`id` int(11) NOT NULL auto_increment ,`timestamp` varchar(255) NULL ,`file` varchar(1000) NULL ,`uid` int(11) NULL ,`email` varchar(255) NULL ,`ip` varchar(255) NULL ,`agent` varchar(255) NULL ,`notified` bit(1) NULL DEFAULT 'b\'0\'' , PRIMARY KEY (`id`), KEY `uid` (`uid`) USING BTREE) ENGINE=InnoDB DEFAULT COLLATE utf8mb4_unicode_ci
With existing tables is set to DROP and "Suppress foreign key checks", "No auto value on zero", and "Allow UTF8MB4 auto-detection" are selected
Looking at the tables in the DB it looks like the restore operation succeeds in dropping the table prior to the creation attempt.
After reading several articles regarding ErrNo #0 which mention permission issues I attempted running the following SQL with CLI as the wordpress user I'm entering in the ANGIE dialogs. No errors
This was the result of running
show create table wp_fileaway_downloads;
on the Dev server that we used to create the JPA
CREATE TABLE `wp_fileaway_downloads` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`timestamp` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`file` varchar(1000) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`uid` int(11) DEFAULT NULL,
`email` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`ip` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`agent` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`notified` bit(1) DEFAULT b'0',
PRIMARY KEY (`id`),
KEY `uid` (`uid`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci
As the plugin that the table supports is no longer installed or in use I have deleted the table from the DEV server, created a new backup and was able to restore. This is more to alert you to a potential problem.
-Paul Bergman