0

I wanna dump file for MySQL database using query.I got the dump file when i used shell.but i could not get dump file while using heidisql.

In Shell:

C:\Program Files (x86)\MySQL\MySQL Server 5.1\bin>
mysqldump -uroot -proot >"D:\backups\student.sql"

In Heidisql:

  1. C:\Program Files (x86)\MySQL\MySQL Server 5.1\bin\mysqldump -u root -p root databases student >"D:\student.sql"

  2. mysqldump -u root -p[root] [student] > D:/student.sql

1
  • 1
    And the error is . . . Commented Sep 26, 2016 at 7:27

1 Answer 1

2

mysqldump is an application, HeidiSQL is another one. You're creating an .sql file by telling an application to create it, either mysqldump or HeidiSQL. You cannot use both applications at the same time.

In HeidiSQL, click on Tools > Export database as SQL, then follow the dialog.

Sign up to request clarification or add additional context in comments.

2 Comments

Thanks for your answer.
You can accept the answer as the correct one by clicking on the marker on the left of it. That's how that works here on StackOverflow.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.