Restore a MySQL Database Backup (ERROR 1064 (42000))
Hello. When using cPanel Backup Wizard to Restore mySQL databases, I get the following error:
My corresponding DB Table:
DROP TABLE IF EXISTS `search`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `search` (
`ID` int(5) unsigned NOT NULL AUTO_INCREMENT,
`searchvalue` varchar(250) CHARACTER SET utf8mb4 DEFAULT NULL,
`created_at` timestamp(3) NOT NULL DEFAULT CURRENT_TIMESTAMP(3) ON UPDATE CURRENT_TIMESTAMP(3),
PRIMARY KEY (`ID`) USING BTREE,
FULLTEXT KEY `searchvalue` (`searchvalue`)
) ENGINE=MyISAM AUTO_INCREMENT=5980 DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;
/*!40101 SET character_set_client = @saved_cs_client */;
This means restore fails at this table! I've searched the net but cannot find a solution, any ideas?
-
You could try to import the database from PHPMyAdmin instead (it can be opened from cPanel) or if you have shell access then you can import it manually from command line using the "--force" option.
Andrew N. - cPanel Plesk VMWare Certified Professional
Do you need immediate assistance? 20 minutes response time!* Open a ticket
EmergencySupport - Professional Server Management and One-time Services0 -
It seems there is something wrong with the MySQL backup you are trying to restore if it is not letting you restore things normally. A manual import on the command line like Andrew mentioned may provide more additional details about the problem.
0
Please sign in to leave a comment.
Comments
2 comments