473,473 Members | 1,723 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

database backup error

114 New Member
i am trying to backup my MySQL database using the following command but it generates error. I am using WAMP 2.0 server and is an XP machine.
[HTML]
mysqldump -u root -p 123456 db > backup.sql;
[/HTML]
[HTML]
You have an error in your SQL syntax; check the manual that corresponds to your MySQL server
version for the right syntax to use near 'mysqldump -u root -p 123456 db > backup.sql' at line 1
[/HTML]
What is the problem? the MySQL version used is 5.0.45.
Sep 26 '08 #1
3 1424
Atli
5,058 Recognized Expert Expert
Hi.

mysqldump is not a SQL statement. It is a command line tool that is supposed to be used from outside MySQL.
You should simply issue that command in a CMD window without login into MySQL first.
Sep 26 '08 #2
raaman rai
114 New Member
Thankyou i was able to backup the database. But a new problem has arised. It is found out that the INSERT command terminates in halfway if you have huge number of records to be restored. It simply stops in between and shows the following information.
[HTML]
/*!40000 ALTER TABLE `tblcompany` ENABLE KEYS */;
UNLOCK TABLES;
[/HTML]
Thereafter even if i give ';' it doesnt show the completed or "Query Ok" message. So what could be the problem?
Sep 27 '08 #3
raaman rai
114 New Member
It seems the problem is with the storage engine because my tables are of type InnoDB. Now how should i change the tables into type MyISAM?
Sep 27 '08 #4

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

Similar topics

6
by: Edwinah63 | last post by:
Hi Gurus, i am having problems with restoring a ms sql database. i have restored the database using veritas to a different location ('g:\datafiles') in no recover mode. when i view the...
1
by: Andre | last post by:
Hi, I have a database (or better: used to have) and backup consisting of - the initial (complete) database - all log files since then (or so I thought) After making a data entry error I wrote...
2
by: Moti.Ba | last post by:
Hello, I need to restore the Master DB in my SQL 2k server (with sp3). The problem is that i don't have SQL backups of this file I only have general backup of the entire c:\ drive i made using...
3
by: Tommy.Vincent | last post by:
Hi, its newbie question. I have one production server(A) ,one backup server(B),additional server(C). my database backup are moved from A to C in regular basis. My problem is that when...
5
by: Hassan Naqvi | last post by:
Hi, Basically, I am Java developer. In past I have played with Oracle using Java (JDBC). But this is the time to play with IBM DB2 using Java (JDBC). So kindly help this DB2 newbie. I have a...
6
by: Richard Hollenbeck | last post by:
I'd like a button on my main form to backup the database. How can I call up the Windows folder browser to prompt me for a filename and type (*.mdb) and folder to save in? I looked in my book and...
0
by: harry | last post by:
Hi, Any suggestions to solve the following please? I have two connections to sql server 2005; cn1 on default database DB1 cn2 on default database master 1. Create connection to DB1...
18
by: NDayave | last post by:
ive managed to piece together this code that creates a backup folder and then copies the (Access 2000) database into it under the new name "Backup YYYY-MMM-DD HH.MM". It worked fine in the...
1
by: bmoos1 | last post by:
When I came in on Monday and tried to open my database, everything worked fine until I tried to run the database splitter. It didn't work, but when I tried to go back into my database, it says I...
3
by: aashiss03 | last post by:
hi everyone When i m trying resrore the database system is throwing this error. RESTORE DATABASE NSWD FROM "C:\db2_backups" TAKEN AT 20080429211406 TO "C:" INTO NSWD WITH 2 BUFFERS BUFFER...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
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...
1
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
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
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
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 ...
1
muto222
php
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
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.