0

hi i want to backup my MySql database, i write this command :

mysqldump -u root -ppassword -h localhost --all-databases > backup.sql;

and it give this error:

ERROR 1064 (42000): 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 'mysql
dump -u root -pmanager -h localhost --all-databases > backup.sql' at line 1

why? and what should be do? thanks...

1 Answer 1

3

You are running this command in mysql. You should be running it from the command line instead.

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

3 Comments

it give me: Access is denied. why?
is there a command or a way to know the open sessions in mysq?
@ooo SHOW PROCESSLIST; will list open sessions.

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.