2

Since I'm just a beginner in using Ubuntu 18.04 and MySQL 5.7 on it, which is the best and fastest way to do backup of database using terminal? Or do I need to search for it in some files and whatever...

0

The default method would be to use mysqldump.

mysqldump -u {user} -p {database} > {backup.sql}

and you will get a text based file that holds any SQL related to that that database: table definition, content. The link will list far more options (you can for instance only dump the structure of the database, include procedures, functions and many more)

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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