OK, it's worth checking if your tables are MyISAM or InnoDB via MySQL's interface, but in any event, you can probably solve this by commenting out this line in qa-db-install.php:
$tables['userlogins'][]='CONSTRAINT ^userlogins_ibfk_1 '.$userforeignkey.' ON DELETE CASCADE';