Connecting Tech Pros Worldwide Help | Site Map

mysql dump problem - not dumping

Newbie
 
Join Date: Jul 2007
Posts: 27
#1: Aug 27 '07
hi!

my problems:

1. i can not restore my database
from my command line i type
Quote:
c:\wamp\mysql\bin>mysqldump -u root csu --opt<c:\wndows\temp\csu_backup
gives me:
Expand|Select|Wrap|Line Numbers
  1. /*!40101 SET @OLD_CHARACTER...
  2. /*!40104 ....
  3. dump complete 2007-08-27...
when i check 'csu' database no tables created.
original backup created using mysqldump
working from command line and WAMP server
thks in advance.
pbmods's Avatar
Site Moderator
 
Join Date: Apr 2007
Location: Texas
Posts: 5,435
#2: Aug 28 '07

re: mysql dump problem - not dumping


Heya, Prosad.

Is the problem that mysqldump isn't working? Or is the problem that you can't restore the database from a dumpfile.

Did you select a database before evaluating the dumpfile?
Newbie
 
Join Date: Jul 2007
Posts: 27
#3: Aug 28 '07

re: mysql dump problem - not dumping


Quote:

Originally Posted by pbmods

Heya, Prosad.

Is the problem that mysqldump isn't working? Or is the problem that you can't restore the database from a dumpfile.

Did you select a database before evaluating the dumpfile?

pbmos,

mysqldump is working, selected database csu and creates tables in 'csu' database but no data dumped into restored tables. tables have no records thoughdump file have records in them.
used phpmyadmin and worked fine though this is not my desired approach
code green's Avatar
Expert
 
Join Date: Mar 2007
Location: England
Posts: 1,076
#4: Aug 28 '07

re: mysql dump problem - not dumping


mysqldump creates a dump - to a file if required - of a database.
To create a DB from the dump you need mysql.exe
Expand|Select|Wrap|Line Numbers
  1. create dump file
  2. c:\wamp\mysql\bin\mysqldump -u root csu --opt >c:\wndows\temp\csu_backup
  3. Restore from file
  4. c:\wamp\mysql\bin\mysq -u root csu <c:\wndows\temp\csu_backup
Newbie
 
Join Date: Jul 2007
Posts: 27
#5: Aug 28 '07

re: mysql dump problem - not dumping


code green,
thanks. works well.
nothing is simple where knowledege is lacking
Reply