Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people, just like you, are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
Solved

mysqldump gives syntax error

Posted on 2007-11-14
2
1,008 Views
Last Modified: 2012-08-13
When I use the mysql dump command, I get an 'error in SQL syntax'.
Even this:
mysql> mysqldump --help;
gives the error

I see that mysqldump is in the bin directory, so it is there.
0
Comment
Question by:allelopath
2 Comments
 
LVL 20

Accepted Solution

by:
steelseth12 earned 400 total points
ID: 20282387
You dont run mysqldump from within mysql.
You run it from the shell
For more info take a look at http://dev.mysql.com/doc/refman/5.0/en/mysqldump.html
0
 
LVL 3

Assisted Solution

by:bayesianmind
bayesianmind earned 100 total points
ID: 20282394
Here's an example usage:

from command line:
mysqldump database -u user -p > backupDB.sql
It will then prompt you for the pass for user and go on its way.
0

Featured Post

The Eight Noble Truths of Backup and Recovery

How can IT departments tackle the challenges of a Big Data world? This white paper provides a roadmap to success and helps companies ensure that all their data is safe and secure, no matter if it resides on-premise with physical or virtual machines or in the cloud.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

I use MySQL for many of my development projects in a Windows environment. To manage my databases (and perform queries) for years I used a tool called MySQL administrator.  This tool has since been replaced by MySQL Workbench. So I decided to m…
Popularity Can Be Measured Sometimes we deal with questions of popularity, and we need a way to collect opinions from our clients.  This article shows a simple teaching example of how we might elect a favorite color by letting our clients vote for …
Nobody understands Phishing better than an anti-spam company. That’s why we are providing Phishing Awareness Training to our customers. According to a report by Verizon, only 3% of targeted users report malicious emails to management. With compan…

839 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question