Unsung a client (Navicat is used as an example)
1. After databases are connected, select the database whose data you want to export.
2. Right-click the database and choose Dump sql file form the shortcut menu to save a data file.
Using the CLI
1. Run the mysqldump –uroot –p database whose data you want to export>file to which data is exported command to export all data (including database instructions and data).

2. Run the mysqldump –uroot –p –t database whose data you want to export>file to which data is exported to export data files.
