Just took a look at the script, its very well commented and will hopefully save me a lot of time! It might be helpful for non-anet user too.

However, there is one important security issue:

Why are you letting the application send the mysql username and password over http-post to the server? That is something the application shouldn't even know! Everyone could either find it in the binary or spy the traffic with a sniffer and find it there.

Why not letting the user write it into a settings.php file that gets included into the other php files like other php/sql applications do it? I'm going to modify this script anyway and will do it this way, but I wanted to share this with you.