Click here to Skip to main content
15,997,667 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi
Please tell me how to take database backup in mysql using command line.and where it will be stored..i am using MySql 5.5

Thank you
Posted

1 solution

 
Share this answer
 
v3
Comments
[no name] 20-Dec-12 2:33am    
i tried this but its giving error..

mysql> mysqldump -uroot -p1234 demo > demo.sql
-> ;
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 -uroot -p1234 demo>demo.sql' at line 1
mysql> mysqldump --user root --password=1234 demo > demo.sql;
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 --user root --password=1234 demo > demo.sql' at line 1

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900