Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

I want to copy my database qdbase server. It is located at:

qa@qaubuntu:~$ /var/lib/mysql/qdbase

On the client PC, I want it located at:

qa@qadesktop:~$ /home/qa/html

Everyone tells me to use mysqldump. How do I use that because I've never learnt how to use that?

share|improve this question
add comment

2 Answers

up vote 0 down vote accepted

The following is just an example to use mysqldump.

cd /home/qa/html
mysqldump --host="hostname" --user="username" --password="password" databasename > backup_name.sql
share|improve this answer
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.