Mac OS X Server, Unix Basic Backup of MySQL November 11, 2005 From the /usr/local/mysql/bin directory you can use the following command: ./mysqldump –add-drop-table databasefilename > backup.sql