[wp-hackers] Mass install script help

info at blandt.com info at blandt.com
Mon Sep 25 14:44:10 GMT 2006


I made a script (mass-install.php) which I run and it then makes multiple installs of wordpress. But I have some trouble with it. Primary mass-install.php
contains all the codes and commands from wp-admin/install.php. And I have a "for" loop in it to change the database prefix for multiple blog installs using
the same database.

The first run is ok (all tables and files get installed 100%). The next run I get the message "You appear to have already installed WordPress. To
reinstall please clear your old database tables first." ... and that's the problem. I have no idea why. The prefixes are unique etc. everything is fine. I
have that feeling that I need to CLOSE and RE-OPEN the mysql connection for every blog install ... but I don't know how to do that. 

How can I reset the complete db connection ??? Could this solve the problem?

Thanks for your help!! 

More information about the wp-hackers mailing list