I'm trying to work through some changes to a fairly sizeable database and have to keep resetting it to a known state.
At the moment I am doing this by running a large (22mb) dump file on my local system in PHPmyadmin on the server. This is taking forever.
I would like to be able to upload the dump file and have a php page execute that file when it is loaded, meaning that I can reset the database far more quickly.
The problem is that I don't know how to execute mySQL statements from a seperate file. Can anyone help.
Thanks.