To close the open database, first close all windows in the main program shell and then select File Close Database from the main menu. Exiting the program automatically closes the open database (see Exiting the Program).
More:
Saving a Backup Copy of a MySQL Database