It's pretty easy, setup a new install (separate database) then change the database name in the includes/config.inc.php file to be that of the old database.
You'll either want to start with a version that's the same as the old db version or run the upgrade script after you change the db name in the config file.