Update mysql-export.sh

fix mktemp path and random characters
fix typo
fix parsing URL

It didnt work compression=on with phpMyAdmin3.2.3.
Merge pull request #1 from uryossa/patch-1

Update mysql-export.sh. Thanks uryossa.