I'm developing a web application that requires my duplicating a master database for different customers. In other words, I want to ensure that each customer has their own db setup, all based on a master structure, without having to write-out all of the create db code.
I'd like to use PHP to simply copy the master db and rename it. The only scripts I've found require using a shell. I want the customer to be able to automatically setup their account without intervention from me. This means that they fill out a form and the db gets created when they press submit. The MySql server is being hosted, so the shell option is out. Any ideas on this?