mysqldump --opt -Q -u root -p --default-character-set=utf8 test > "/Users/Jerry/Sites/testbak.sql" test is the name of the database you want to backup. Use mysqldump --help to see more options.