I am writing a script to duplicate dynamic sites that all run from the same server.
I have all assets of the management done except for one final thing.
I need to make a form that will duplicate a mysql database to a new database with the name coming from a form variable.
I have scoured the web for the answer and as you can imagine a Google search like duplicate mysql database results in nothing relevant to the task at hand.
One avenue i thought to try was mysqldump -quick to dump the database to a text file and then open that dump to create a new one. This seams to be a convoluted theory though.
Does anyone have any scripts that will do what I am attempting? Or even better, a link to some logic?
Thanks In Advance!
Mike - St. Louis MO