http://qs321.pair.com?node_id=309519


in reply to Table creation

Well, you have

$dbh->disconnect();

before the second sql statement, so you are no longer connected to the database when you try to create the second table.