Creating the database tables is easy enough, just make a string of the SQL as you would with any query and chuck it into a mysql_query(); (Open the .sql files and read them into said string if need be). Obviously you'd need to use the correct mysql database and user, but theres no reason it wouldn't work. I don't think you can actually run "source c:/blah" mysql commands from php.. but someone may know better.
Don't code yourself out of a job mind.. 😉