473,511 Members | 15,046 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

mysql dump problem - not dumping

27 New Member
hi!

my problems:

1. i can not restore my database
from my command line i type
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.
Aug 27 '07 #1
4 3592
pbmods
5,821 Recognized Expert Expert
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?
Aug 28 '07 #2
prosad
27 New Member
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
Aug 28 '07 #3
code green
1,726 Recognized Expert Top Contributor
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
Aug 28 '07 #4
prosad
27 New Member
code green,
thanks. works well.
nothing is simple where knowledege is lacking
Aug 28 '07 #5

Sign in to post your reply or Sign up for a free account.

Similar topics

2
3917
by: Simon | last post by:
Hi, I am having a little problem with my PHP - MySQl code, I have two tables (shown below) and I am trying populate a template page with data from both. <disclaimer>Now I would like to say my...
2
1540
by: Andy Jacobs | last post by:
I've got a feeling that I may have asked this before but I can't find the answer if there was one offered so apologies for that... I've written a little content management system and I want to...
4
12677
by: news | last post by:
Our production database in an exported textfil runs about 60 MB. Compressed that's about 9 MB. I'm trying to import the export into another machine running FC3 and mySQL 11.18, and it appears as...
29
2552
by: smorrey | last post by:
I've been thinking on this long and hard, and I can't seem to come up with an answer on it. Why is it almost always assumed the MySQL will be the server for nearly any PHP app? Why is it...
6
11269
by: Soeren Gerlach | last post by:
Hi, some weeks ago I started to develop an application using Postgresql the first time. I'm running 7.4.3 on a Linux box with a plain 2.6.7 kernel, the storage is handled by 5 SATA disks,...
6
1728
by: frank78 | last post by:
Hi everyone, I am having a little bit of trouble backing up some mySQL tables. I've been trying to adapt a script I found on the internet at...
4
3681
by: Robert Blackwell | last post by:
A while ago I had some help from here to make a batch file that would dump my db. Everything was working just fine until 2 days ago and I just found out. I checked my backup folder and found...
5
5262
by: Vik Rubenfeld | last post by:
Is there a way to import an MS Access database .mdb file into MySQL running locally on a Mac? Thanks in advance to all for any info.
0
1772
by: eso40043 | last post by:
Hello, due to a memory leak (bug, I guess) in pyraf(or rather in IRAF) I have to fork an iterative process that goes through hundreds of image frames and does unspeakable things to them. In the...
0
7417
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
1
7074
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
7506
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
5659
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
1
5063
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
3219
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
0
3210
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
1572
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...
0
445
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.