Bug #44539 Problem in Restoring backup
Submitted: 29 Apr 2009 12:09 Modified: 30 Apr 2009 7:15
Reporter: zm mk Email Updates:
Status: Not a Bug Impact on me:
None 
Category:MySQL Server: Command-line Clients Severity:S2 (Serious)
Version:Server version 5.0.77-log OS:Linux (RHEL-4)
Assigned to: CPU Architecture:Any
Tags: Backup Restore Problem

[29 Apr 2009 12:09] zm mk
Description:
I m trying to restore education.sql backup file made in phpmyadmin v 2.0,  MySql ver.  5.1.30 and I getting this error :
 MySQL dump 10.11
--
-- Host: localhost    Database: education
-- ------------------------------------------------------
-- Server version       5.0.77-log

/*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */;
/*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS */;
/*!40101 SET @OLD_COLLATION_CONNECTION=@@COLLATION_CONNECTION */;
/*!40101 SET NAMES utf8 */;
/*!40103 SET @OLD_TIME_ZONE=@@TIME_ZONE */;
/*!40103 SET TIME_ZONE='+00:00' */;
/*!40014 SET @OLD_UNIQUE_CHECKS=@@UNIQUE_CHECKS, UNIQUE_CHECKS=0 */;
/*!40014 SET @OLD_FOREIGN_KEY_CHECKS=@@FOREIGN_KEY_CHECKS, FOREIGN_KEY_CHECKS=0 */;
/*!40101 SET @OLD_SQL_MODE=@@SQL_MODE, SQL_MODE='NO_AUTO_VALUE_ON_ZERO' */;
/*!40111 SET @OLD_SQL_NOTES=@@SQL_NOTES, SQL_NOTES=0 */;
/*!40103 SET TIME_ZONE=@OLD_TIME_ZONE */;

/*!40101 SET SQL_MODE=@OLD_SQL_MODE */;
/*!40014 SET FOREIGN_KEY_CHECKS=@OLD_FOREIGN_KEY_CHECKS */;
/*!40014 SET UNIQUE_CHECKS=@OLD_UNIQUE_CHECKS */;
/*!40101 SET CHARACTER_SET_CLIENT=@OLD_CHARACTER_SET_CLIENT */;
/*!40101 SET CHARACTER_SET_RESULTS=@OLD_CHARACTER_SET_RESULTS */;
/*!40101 SET COLLATION_CONNECTION=@OLD_COLLATION_CONNECTION */;
/*!40111 SET SQL_NOTES=@OLD_SQL_NOTES */;

-- Dump completed on 2009-04-29 12:39:57

Please help me !!

How to repeat:
ggg
[29 Apr 2009 12:42] Valeriy Kravchuk
Please, upload your backup file and send the exact command you executed.
[30 Apr 2009 5:00] zm mk
created through phpmyadmin

Attachment: class.sql (application/octet-stream, text), 1.05 KiB.

[30 Apr 2009 5:01] zm mk
command i have been using is :
# mysqldump -u root -p **** education < /usr/local/src/class.sql
[30 Apr 2009 7:15] Sveta Smirnova
Thank you for the feedback.

> command i have been using is :
> # mysqldump -u root -p **** education < /usr/local/src/class.sql

But mysqldump is for dump of databases, not for restore. This is why you get output provided. You have to restore using mysql command line client.