Hi. I want to take the backup of mysql database. How can I take it using query or command? Please tell me. I tried with this one but it didn't worked. so what should be the problem with this? Please tell me. mysqldump -u root -p databasename > backup.sql Thanks in advance.
Hello Look around devarticles.com/c/a/MySQL/Backing-Up-Your-MySQL-Databases-With-MySQLDump/2/ Best regards! Jakomo
Try it like this: mysqldump -uroot -p databasename > backup.sql (No space between '-u' and 'root'). Hope that helps.
what error did you get? maybe you need to specify full path to mysqldump utility if it's not in your path. also, maybe you need root permissions to run mysqldump binary utility