Update mysql-export.sh

fix mktemp path and random characters
fix typo
fix parsing URL

It didnt work compression=on with phpMyAdmin3.2.3.