Does this sound like a dreamhost problem?
We did a rewrite of our site. we are trying to run a script called import.php. Basically populates the new table and pulls in the data from the old table. So we need 2 connections to pull this off.
I did some testing and it looks like this has something to do with accessing multiple databases from the same script. I’m guessing this has something to do with your hosting provider. Even though the script saves each connection to a different identifier ($oldDb and $newDb) it is only querying the $newDb because that’s the last one connected to. If you go down to the first section to pull data over you should see a query that looks like “select * from countries”. If you output a mysql_num_rows() after that query you’ll get 0. There is a countries table in the new database but it is initially empty. So to confirm my theory I picked a table in the new database that was not initially empty. Change the table in that query from countries to bats and now mysql_num_rows() will show 3. We can also tell this is the case because there is no bats table in the old database. So does DreamHost limit you to 1 database connection per script?