Unix Technical Forum

Problem recovering from mysqldump

This is a discussion on Problem recovering from mysqldump within the MySQL General forum forums, part of the MySQL category; --> Hi, I want to copy some databases to a new server and I have tried to backup my databases ...


Go Back   Unix Technical Forum > Database Server Software > MySQL > MySQL General forum

Register FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 02-28-2008, 07:02 AM
Alicia Amadoz
 
Posts: n/a
Default Problem recovering from mysqldump

Hi,

I want to copy some databases to a new server and I have tried to backup
my databases with mysqldump in the old server, then copy those files to
the new server and recover them with mysqldump again. The problem is
that when doing,

>mysqldump -u root -p mydb < mydb_backup.sql


the message that appears is

-- MySQL dump 10.11
--
-- Host: localhost Database: dbcontrol
-- ------------------------------------------------------
-- Server version 5.0.45
/..../
-- Dump completed on 2007-11-28 11:13:13

But when entering mysql in the new server, no table has been restored
although it says that dump has been completed. The old server version is
5.0.21 with mysqldump 10.10. Any idea how to solve this and copy my
databases properly?

Thanks for your help.

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #2 (permalink)  
Old 02-28-2008, 07:02 AM
Parikh, Dilip Kumar
 
Posts: n/a
Default RE: Problem recovering from mysqldump

Hi ,

U Can try using this option.

Login into database

Type as :-

\. /tmp/mydb_backup.sql

Hope this will help you out.



-----Original Message-----
From: Alicia Amadoz [mailto:Alicia.Amadoz@uv.es]
Sent: Wednesday, November 28, 2007 5:27 PM
To: mysql@lists.mysql.com
Subject: Problem recovering from mysqldump

Hi,

I want to copy some databases to a new server and I have tried to backup
my databases with mysqldump in the old server, then copy those files to
the new server and recover them with mysqldump again. The problem is
that when doing,

>mysqldump -u root -p mydb < mydb_backup.sql


the message that appears is

-- MySQL dump 10.11
--
-- Host: localhost Database: dbcontrol
-- ------------------------------------------------------
-- Server version 5.0.45
/..../
-- Dump completed on 2007-11-28 11:13:13

But when entering mysql in the new server, no table has been restored
although it says that dump has been completed. The old server version is
5.0.21 with mysqldump 10.10. Any idea how to solve this and copy my
databases properly?

Thanks for your help.


--
MySQL General Mailing List
For list archives: http://lists.mysql.com/mysql
To unsubscribe:
http://lists.mysql.com/mysql?unsub=d...parikh@eds.com

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #3 (permalink)  
Old 02-28-2008, 07:02 AM
Duane Hill
 
Posts: n/a
Default Re: Problem recovering from mysqldump

On Wed, 28 Nov 2007 12:57:25 +0100 (CET)
"Alicia Amadoz"<Alicia.Amadoz@uv.es> wrote:

> Hi,
>
> I want to copy some databases to a new server and I have tried to
> backup my databases with mysqldump in the old server, then copy those
> files to the new server and recover them with mysqldump again. The
> problem is that when doing,
>
> >mysqldump -u root -p mydb < mydb_backup.sql

>
> the message that appears is
>
> -- MySQL dump 10.11


If mydb_backup.sql is the dump file, try:

mysql -u root -p mydb < mydb_backup.sql

mydb_backup.sql is populated with sql statements that need to be ran
using mysql.

------
_|_
(_| |
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Forum Jump


All times are GMT. The time now is 05:56 AM.


Powered by vBulletin® Version 3.6.5
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
SEO by vBSEO 3.2.0
www.UnixAdminTalk.com