mysqldump --no-tablespaces --extended-insert --single-transaction --quick -h example.com -u username -p databasename > dump.sql --set-gtid-purged=OFF
With PV command:
mysqldump --no-tablespaces --extended-insert --single-transaction --quick -h example.com -u username -p databasename --set-gtid-purged=OFF | pv > dump.sql