How to download and install MySQL command line client via applescript

I’m trying to figure out how to script downloading and installing the MySQL command line client using applescript. Even if I have to host the file on my own web server so MySQL doesn’t change the filename etc, that’s fine.

Anyone got any examples that will help me on my way to creating this?

Thanks